blogo

12 oct 2018

Angular JS – Environment Setup

How to install AngularJS?

Step 1:- Iru al https://angularjs.org/

Step 2:- Download uncompressed version for development

Step 3:- We should also use content distribution network (CDN) to use AngularJS
CDN -> https://ajax.googleapis.com/ajax/libs/angularjs/1.7.2/angular.min.js

Step 4:- include script tag inside HTML’s head tag
<script src=XCHARXhttps://ajax.googleapis.com/ajax/libs/angularjs/1.7.2/angular.min.jsXCHARX></script>

Step 5:- Use ng-app directive in any HTML Selector

Let us understand by a simple example.

In this example:-

  • AngularJS basically HTML with ng-directives.
  • The ng-app directive will define an AngularJS application.
  • The ng-model directive will bind the value of HTML controls to application data.
  • The ng-bind directive will binds application data to the HTML view.

Angular Training

In Just 4 Days
Enroll Nun

GTranslate Your license is inactive or expired, please subscribe again!