mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(ivy): directives without selector should not be supported (#28021)
PR Close #28021
This commit is contained in:
committed by
Andrew Kushnir
parent
7374dfd1fa
commit
76ed13bffe
@@ -165,6 +165,9 @@ export function extractDirectiveMetadata(
|
||||
}
|
||||
selector = resolved;
|
||||
}
|
||||
if (!selector) {
|
||||
throw new Error(`Directive ${clazz.name !.text} has no selector, please add it!`);
|
||||
}
|
||||
|
||||
const host = extractHostBindings(directive, decoratedElements, evaluator, coreModule);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user