MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / getDirectiveRestrict

Function getDirectiveRestrict

lib/test/angular/1.6.7/angular.js:8220–8229  ·  view source on GitHub ↗
(restrict, name)

Source from the content-addressed store, hash-verified

8218 }
8219
8220 function getDirectiveRestrict(restrict, name) {
8221 if (restrict && !(isString(restrict) && /[EACM]/.test(restrict))) {
8222 throw $compileMinErr('badrestrict',
8223 'Restrict property \'{0}\' of directive \'{1}\' is invalid',
8224 restrict,
8225 name);
8226 }
8227
8228 return restrict || 'EA';
8229 }
8230
8231 /**
8232 * @ngdoc method

Callers 1

$CompileProviderFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected