Method
|
Syntax
|
|
|
As an attribute
|
<span my-directive></span>
|
|
|
As a class
|
<span class="my-directive:
expression;"></span>
|
|
|
As an element
|
<my-directive></my-directive>
|
|
|
As a comment
|
<!-- directive: my-directive
expression -->
|
|
|
Thursday, September 7, 2017
What are different ways to invoke a directive?
There are four methods to invoke a directive in your angular app which are equivalent.
Subscribe to:
Post Comments (Atom)
What is restrict option in directive?
The restrict option in angular directive, is used to specify how a directive will be invoked in your angular app i.e. as an attribute, class...
-
JavaScript is a general-purpose programming language designed to let programmers of all skill levels control the behavior of software objec...
-
The delete operator is used to delete all the variables and objects used in the program ,but it does not delete variables declared with...
No comments:
Post a Comment