What is restrict option in directive?

Answer Posted / chaitanya

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, element or comment.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is webpack in angular?

427


What is ngafterviewchecked?

392


How to get image width height in angular js, before uploading a file?

470


When should we use an attribute versus an element in custom directives?

427


What do you know about internationalization?

427






What are guards in angular 2?

402


What is difference between javascript and angular?

402


What are the advantages of angular 2 over angular 1?

421


What does ng transclude do?

431


Explain the need for di in angularjs?

430


What is one way data binding in angularjs?

409


What is Data Binding? How Many Types Of Data Binding Directives Are Provided By AngularJS?

466


What is the difference between the $watch, $digest, and $ apply?

424


What is factory method in angular.js?

426


How to handle xss vulnerability scenarios in angular?

444