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