Setting up AngularJS.
All you need to do is- Download the AngularJs script from https://angularjs.org/.
- You can use the AngularJs cdn
http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js
- Add the Angular Js ng-app="" tag to initialize the angukar application.
- Add the angularjs script to the Html page and you are good to go
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
</head>
<body ng-app="">
<h1>{{"Hello" +" " + "World!" }}</h1>
</body>
</html>
The above code will give you the following output.
Comments
Post a Comment