MCPcopy
hub / github.com/angular-ui/ui-grid / getDirectiveRestrict

Function getDirectiveRestrict

lib/test/angular/1.7.0/angular.js:8359–8368  ·  view source on GitHub ↗
(restrict, name)

Source from the content-addressed store, hash-verified

8357 }
8358
8359 function getDirectiveRestrict(restrict, name) {
8360 if (restrict && !(isString(restrict) && /[EACM]/.test(restrict))) {
8361 throw $compileMinErr('badrestrict',
8362 'Restrict property \'{0}\' of directive \'{1}\' is invalid',
8363 restrict,
8364 name);
8365 }
8366
8367 return restrict || 'EA';
8368 }
8369
8370 /**
8371 * @ngdoc method

Callers 1

$CompileProviderFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected