<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.17/angular.min.js"></script>
</head>
<body ng-app="myapp">
<div ng-controller="HelloController">
<h2>Welcome {{ helloTo.Title }} to the world of tutorial point</h2>
</div>
<script>
angular.module("myapp",[])
.controller("HelloController",function($scope)
{
$scope.helloTo=[];
$scope.helloTo.Title="AngularJS";
});
</script>
</body>
</html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.17/angular.min.js"></script>
</head>
<body ng-app="myapp">
<div ng-controller="HelloController">
<h2>Welcome {{ helloTo.Title }} to the world of tutorial point</h2>
</div>
<script>
angular.module("myapp",[])
.controller("HelloController",function($scope)
{
$scope.helloTo=[];
$scope.helloTo.Title="AngularJS";
});
</script>
</body>
</html>
No comments:
Post a Comment