Table of Content 1
- Lecture1.1
AngularJS Environment Setup
Step 1: First of all open the link https://angularjs.org/ then it will open a page:
Step 2: It will give two options –
1. View on GitHub – It will give all the latest scripts.
2. Download – When you click on this button then it shows:
Step 3: Click on download button then it will download angular.min.js.
Step 4: Create a HTML page and in this page include the AngularJS JavaScript file as follows:
<head> <script src = "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> </head>
Step 5: Then run the HtML page in the browser.
Example
<!DOCTYPE html> <html lang="en-US"> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <body> <h1>Sample Application</h1> <div ng-app=""> <p>Name : <input type="text" ng-model="msg"></p> <p>Hello {{msg}}</p> </div> </body> </html>
Output
Sample Application
Name:BBSTechnologies
Hello BBSTechnologies