(restrict, name)
| 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 |
no test coverage detected