Angular: Empty Fiddle
http://angularjs.org/
by g
HTML
<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<div ng-controller="MyCtrl">
Hello, {{name}}!
</div>
JavaScript
var myApp = angular.module('myApp',[]);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
function MyCtrl($scope,$timeout) {
$scope.name = 'Superhero';
$scope.testTimeOutfunction = function(text){
alert(text);
};
//$scope.testTOfunction();
$timeout(function() { $scope.testTimeOutfunction("hello") },10000);
}