Question:What is restrict option in directive?
Answer 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. There are four valid options for restrict: 'A' (Attribute)- <span my-directive></span> 'C' (Class)- <span class="my-directive:expression;"></span> 'E' (Element)- <my-directive></my-directive> 'M' (Comment)- <!-- directive: my-directive expression -->
+ Report
What is restrict option in directive?