Angular JavaScript(JS) Introduction

HTML is used for declaring static documents, but it fails when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.
Angular JS is an extension of HTML, because it can be added inside the tag to an HTML page. AngularJS is a JavaScript framework. AngularJS extends HTML attributes with Directives, and binds data to HTML with Expressions.
AngularJS is a toolset for building the framework most suited to your application development. It is fully extensible and works well with other libraries. Every feature can be modified or replaced to suit your unique development workflow and feature needs.
AngularJS extends HTML with ng-directives.The ng-app directive defines an AngularJS application.The ng-model directive binds the value of HTML controls (input, select, textarea) to application data.The ng-bind directive binds application data to the HTML view.
Letís see an Angular JS example:

<!DOCTYPE html>
<script src=""></script>
<div ng-app="">
<p>Write some text in input box:</p>
<p>YourName: <input type="text" ng-model="name"></p>
<p ng-bind="name"></p>



When the web pag is loaded, the Angular JS start automatically. The ng-app directive instructss AngularJS that the < div> element is the "owner" of an AngularJS application. The ng-model directive binds the value of the input field to the application variable name. The ng-bind directive binds the innerHTML of the element to the application variable name.


Popular Links

Contact Us

address Plot No-741,2ND Floor
Opp. Bhagabati Temple,Jayadev Vihar
      Phone: 0674-2361252
39877, sundale dr, apt#101, Fremont, California 94538, USA
       Phone: +1(262)388-7619

facebook twitter google linked in

© 2018 Silan Technology. All Rights Reserved