<!DOCTYPE html> <div ng-app="myApp" ng-controller="myCtrl"> <p>This header will change after two seconds:</p> <h1>{{myHeader}}</h1> </div> <p>The $timeout service runs a function after a specified number of milliseconds.</p> <script> </body> |
This header will change after two seconds: {{myHeader}}The $timeout service runs a function after a specified number of milliseconds. |