1, go to https://angularjs.org/
2, download angular.js file from above site and place it in our application lib folder
<script src="lib/angular.min.js"></script>
{or}
directly copy CDN and use it with script tag
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script>
3, sample application to test
<html>
<head><title></title></head>
<body>
{{10+5}} //angular expression
</body>
</html>
when we open application in browser it wont interpret angular expression.
To make our webpage angularize we need to include ng-app directive
<html>
<head><title></title></head>
<body ng-app>
{{10+5}} //angular expression
</body>
</html>
No comments:
Post a Comment