Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are the attributes can be used during creation of a new AngularJS Directives?
Home
AngularJS Packaging and Testing
What are the attributes can be used during creation of a new AngularJS Directives?
0
votes
asked
May 21, 2022
in
AngularJS Packaging and Testing
by
sharadyadav1986
What are the attributes can be used during creation of a new AngularJS Directives?
angularjs-directives
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 21, 2022
by
sharadyadav1986
Following are the list of attributes in AngularJS:
Restrict: This attribute consists of value "A" (directives to be triggered on the attribute name), "E" (only match element name), “C” (only match class name) and “M” (only match the comment name).
TemplateUrl: The templateUrl attribute tells the AngularJS HTML compiler to replace custom directive inside a template with HTML content.
Template: It specify an inline template as a string. Not used if you’re specifying your template as a URL.
Replace: It has two values true or false. If true, replace the current element. If false or unspecified, append this directive to the current element.
Transclude: It moves the original children of a directive to a location inside the new template.
Scope: It create a new scope for this directive rather than inheriting the parent scope.
Controller: It create a controller which publishes an API for communicating across directives.
Require: It require that another directive be present for this directive to function correctly.
Link: It modify resulting DOM element instances, add event listeners, and set up data binding.
Compile: It modify the DOM template for features across copies of a directive, as when used in other directives.
Related questions
0
votes
Q: Define and Enlist Directives of AngularJS.
asked
May 21, 2022
in
AngularJS Packaging and Testing
by
sharadyadav1986
angular-directives
0
votes
Q: What if I want custom directives to be applied on element as well as attributes ?
asked
Dec 31, 2023
in
Angular
by
DavidAnderson
angularjs-questions-answers
0
votes
Q: How are services used in AngularJS?
asked
May 21, 2022
in
AngularJS Packaging and Testing
by
sharadyadav1986
angularjs-service
0
votes
Q: What should be paid attention to during the task creation in RPA?
asked
Apr 15, 2020
in
Robotic Process Automation
by
SakshiSharma
#rpa-task-creation
0
votes
Q: The following are all AngularJS directives, except ________
asked
Dec 16, 2023
in
Angular
by
AdilsonLima
angularjs-interview-questions-answers
0
votes
Q: Vue JS provides different attributes and directives for the Tab display of a web page.
asked
Mar 6, 2022
in
VueJS
by
sharadyadav1986
vuejs
tap-display
0
votes
Q: Angularjs 6 Directives and Decorators
asked
Nov 24, 2019
in
Angular
by
rajeshsharma
#angular6-directives
0
votes
Q: What is a Factory method in AngularJS?
asked
May 21, 2022
in
AngularJS Packaging and Testing
by
sharadyadav1986
factory-method
0
votes
Q: How do you upgrade location service of angularjs?
asked
Sep 16, 2023
in
AngularJS Packaging and Testing
by
GeorgeBell
angularjs-interview-questions-answers
0
votes
Q: Describe angular.copy() method in AngularJS?
asked
May 21, 2022
in
AngularJS Packaging and Testing
by
sharadyadav1986
angular-copy
...