Angularjs restrict type

Javascript 8 มิ.ย. 2017

The restrict option is typically set to:

‘A’ – only matches attribute name
‘E’ – only matches element name
‘C’ – only matches class name
‘M’ – only matches comment

These restrictions can all be combined as needed:

‘AEC’ – matches either attribute or element or class name
Let’s change our directive to use restrict: ‘E’:

แท็ก

Onyx

Just a middle-aged programmer, Can do many things but not the most.