What is AngularJS?
AngularJS is a JavaScript framework, it is a library written in JavaScript.
AngularJS extends HTML with new attributes, it is perfect for Single Page Applications (SPAs) and  is easy to use.

AngularJS also lets you define your own directives.

  • AngularJS Directives. AngularJS directives are extended HTML attributes with the prefix ng- .
  • Data Binding.
  • Repeating HTML Elements.
  • The ng-app Directive.
  • The ng-init Directive.
  • The ng-model Directive.
  • Create New Directives.
  • Restrictions.

AngularJS is distributed as a JavaScript file, and can be added to a web page with a script tag:

JavaScript file

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>

AngularJS Example

<!DOCTYPE html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<div ng-app="">
  <p>Name: <input type="text" ng-model="name"></p>
  <p ng-bind="name"></p>



Add Comments