Angular JS

AngularJS is a JavaScript framework, Angular JS can be added to an HTML page with a < script > tag. AngularJS extends HTML attributes with binds data and Directives to HTML with Expressions.

AngularJS Extends HTML
  • AngularJS extends to HTML with ng-directives.
  • The ng-app directive defines an AngularJS application.
  • The ng-model directive binds the value of HTML controls input, a select, text area to application data.
  • The ng-bind directive binds application data to the HTML view data.
AngularJS Directives

As you have already known, AngularJS directives are HTML attributes with an ng prefix, The ng-init directive initializes AngularJS application variables.

AngularJS Expressions

AngularJS expressions are written inside double braces. For Ex. {{ expression }}

AngularJS expressions bind AngularJS data to HTML. The same way as the ng-bind directive. AngularJS also was written as Angular.js. It is a JavaScript-based open-source front-end web application framework. It Mainly maintained by Google and by a community of individuals and corporations to address many of the challenges encountered in developing single-page applications in AngularJS. The JavaScript components complement Apache Cordova. A framework used for developing a cross-platform mobile application. AngularJs aims to both the development and the testing of such applications, by providing a framework.

For client-side model–view–controller (MVC) and model–view–viewmodel (MVVM) architectures, along with components commonly used in rich Internet applications. AngularJS framework works by first reading the Hypertext Markup Language HTML page, which has an additional custom tag, attributes embedded into it. Angular.js interprets those attributes as directives to bind input or output parts of the page to a model that is represented by standard JavaScript variables. The values of those Angularjs JavaScript variables can be manually set within the code, or retrieved from static or dynamic JSON resources.