What is an AngularJs directive? - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
What is an AngularJs directive

What is an AngularJs directive?

What is an AngularJs directive?

      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.


If you have generated any application using AngularJs, you have used AngularJs directives in that whether you have realized it or not. You might have used simple directives like ‘ng-app’, ‘ng-model’, ‘ng-repeat’, ’ng-controller’ etc.  What all these directives do? Well, they assign special behavior to the HTML elements for example ‘ng-app’ attaches the behavior to recognize which part of HTML contains AngularJs app. Types of Directives:-1.      Interpolation Directive2.      ng-bind Directive3.      ng-view and ng-template Directive4.      Escaping HTML From The Model5.      Conditional Rendering6.      ng-show and  ng-hide Directives7.      ng-switch Directive8.      ng-if, ng-else-if and ng-else Directive9.      ng-include Directive10.  ng-cloak Directive11.  ng-repeat Directive12.    ng-repeat for Variables13.   
Repeating Multiple Elements
 

About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.