This option allow you to specify valid restrictions for directives. The value is a string with one
or more of E
, C
, M
and A
.
With this configuration:
{
"angularAllowDirectiveRestrictions": "EA"
}
This directive would be valid:
angular.module('app').directive('goodDirective', function() {
return {
restrict: 'E'
}
});
However, this directive would be invalid:
angular.module('app').directive('badDirective', function() {
return {
restrict: 'M'
}
});