mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(compiler-cli): add flag to enable selectorless (#60977)
Adds a private flag that we can use to enable selectorless as it's being developed. PR Close #60977
This commit is contained in:
committed by
Miles Malerba
parent
c2987d8402
commit
bc9a067ef4
@@ -231,6 +231,8 @@ function ingestNodes(unit: ViewCompilationUnit, template: t.Node[]): void {
|
||||
ingestForBlock(unit, node);
|
||||
} else if (node instanceof t.LetDeclaration) {
|
||||
ingestLetDeclaration(unit, node);
|
||||
} else if (node instanceof t.Component) {
|
||||
// TODO(crisbeto): account for selectorless nodes.
|
||||
} else {
|
||||
throw new Error(`Unsupported template node: ${node.constructor.name}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user