Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 581 Bytes

angularAllowDirectiveRestrictions.md

File metadata and controls

34 lines (26 loc) · 581 Bytes

angularAllowDirectiveRestrictions

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.

Example

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'
  }
});