AngularJS Environment Setup

Follow the instructions to install the AngularJs:

Step 1: First of all open the link https://angularjs.org/ then it will open a page:

Step 2: It will give two options –

angularjs1
1. View on GitHub – It will give all the latest scripts.
angularjs2

Watch this What is Angular 8 video

2. Download – When you click on this button then it shows:
angularjs3

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
output

Watch this AngularJS Video

Recommended Videos

Leave a Reply

Your email address will not be published. Required fields are marked *