Tuesday, 1 May 2018
Directives in Angular 2.
in: angular
In this article, We will discuss about What is Directives in angular 2.
Angular is providing directives to extend html functionality.
Angular directives are similar to html element attributes.
Directives are divided into 3 types,
i/ Component Directive
ii/ Behavioural Directive
iii/ Structural Directive
i/ Component Directive:-
------------------------------
This directive based on Component class [template] using selector is called "Component Directive".
This allows using Component [template] as an element[tag] with in webpage.
ii/ Behavioural Directive:-
-------------------------------
This directives will change appearance or behaviour of html element.
Example:-[ngStyle],[ngClass],[ngSwitch],[(ngModel)]
iii/ Structural Directive:-
------------------------------
This Directives will add/remove html tag[element] dynamically into browser dom.
This Directive will start with * symbol.
Example:- *ngIf,*ngFor,*ngSwitchCase,*ngSwitchDefault.
RELATED POSTS

Error Build:Unknown compiler option 'lib' in angular application for Visual Studio 2015.
In this article, We will discuss about How to resolve Error Build:Unknow ...

How to use multiple components in angular 2.
In this article, We will discuss about How to use multiple components in ...

Data Binding in Angular 2.
In this article, We will discuss about Data Binding in Angular 2. The ...

What are the node packages required for Angular 2 app development?
In this article, We will discuss about What are the node packages requir ...
-
This issue is Completely related to EntityFramework and this issue arises whenever you have installed EntityFramework in one project at th...
-
This is generally a Common Problem or the error could be like this, To Resolve this error, One Small Solution is Exists which is as b...
-
In this article, We will discuss What is the above Error and How to resolve this Error. Whenever, We are Restoring our database into A...
0 comments:
Post a Comment