AngularJS.docx - Introduction AngularJS is a JavaScript framework for dynamic web application It is a powerful library of JavaScript It can be added to

AngularJS.docx - Introduction AngularJS is a JavaScript...

This preview shows page 1 - 5 out of 26 pages.

Introduction AngularJS is a JavaScript framework for dynamic web application. It is a powerful library of JavaScript. It can be added to an HTML page with a <script> tag. AngularJS, is an open- source web application framework which is maintained by Google. AngularJS is quite new Technology its first version 1.0 was released in 2012. It is developed by Misko Hevery, a Google employee, he started to work on AngularJS in 2009. Its latest version is 1.2.21. AngularJS Directives The AngularJS framework can be divided into three major parts; ng-app : The ng-app directive initializes an AngularJS application. ng-model : ng-model directive binds the value of HTML controls (input, select, textarea) to application data. ng-bind : ng-bind directive binds the AngularJS application data to HTML tags. Why called AngularJS Because HTML has Angular brackets and "ng" sounds like "Angular". AngularJS a library, framework, plugin or a browser extension? AngularJS is the framework of JavaScript. AngularJS is 100% JavaScript, 100% client-side and compatible with both desktop and mobile browsers. So it's definitely not a plugin or some other native browser extension. Angularjs Features It is framework of JavaScript and it have own event handing directives. It is open source and it is free for every one. AngularJS have a lot of new features which is given below;
Image of page 1
Two Way Data-Binding It Support two way data binding features. MVC AngularJS is a framework of JavaScript which work on MVC model.
Image of page 2
Dependency Injection AngularJS has a built-in dependency injection subsystem that helps the developer by making the application easier to develop, understand, and test. Validation AngularJS provides client side validation same like JavaScript. Using AngularJS you can create your own validation. Filter Filter are mainly used for modify the data. Filters can be added to expressions and directives using a pipe (|) character. Directives A directive is something that introduces new syntax. It improve the feature or functionality of html elements. Directives are markers on a DOM element which attach a special behavior to it. For example, static HTML does not know how to create and display a date picker widget. To teach HTML this new syntax we need a directive. AngularJS directives are extended HTML attributes with the prefix ng-. Forms An AngularJS form is a collection of input controls like button, input elements. AngularJS has some features for binding data of HTML form input fields to the model object ($scope). You bind an input field to a model property using the ng-model directive. Advantage of Angularjs AngularJS is a framework of JavaScript. It improve the properties of Html elements. Some advantage of of angularjs are; Less Code: It help to write less code. Using angularjs developers can achieve more functionality with writing less code.
Image of page 3
Testable: It make your application testable. AngularJS code is unit testable.
Image of page 4
Image of page 5

You've reached the end of your free preview.

Want to read all 26 pages?

  • Fall '19
  • Document Object Model, HTML element, AngularJS

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture