Posts

Showing posts from August, 2020

ANGULAR JS

Image
  UNIT-4 QN.EXPLAIN Built-in Directives ANGULAR JS AngularJS Directives AngularJS lets you extend HTML with new attributes called  Directives . AngularJS has a set of built-in directives which offers functionality to your applications. AngularJS also lets you define your own directives.   AngularJS Directives AngularJS directives are extended HTML attributes with the prefix  ng- . The  ng-app  directive initializes an AngularJS application. The  ng-init  directive initializes application data. The  ng-model  directive binds the value of HTML controls (input, select, textarea) to application data. AngularJS  ng-app  Directive The  ng-app  directive tells AngularJS that this is the root element of the AngularJS application. All AngularJS applications must have a root element. You can only have one  ng-app  directive in your HTML document. If more than one  ng-app  dire...