ng-app:
anywhere within HTML
we will add page head
If we want to add particular div also
Example:
<html ng-app>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
<body>
<div>
<div ng-view>test
</div>
</div>
</body>
</html>
Result
Test
anywhere within HTML
we will add page head
If we want to add particular div also
Example:
<html ng-app>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
<body>
<div>
<div ng-view>test
</div>
</div>
</body>
</html>
Result
Test
No comments:
Post a Comment