mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(compiler): add flag to enable selectorless parsing (#60952)
Adds a flag to `parseTemplate` to enable selectorless. PR Close #60952
This commit is contained in:
committed by
Pawel Kozlowski
parent
6cce056d41
commit
08512ee285
@@ -130,6 +130,9 @@ export interface ParseTemplateOptions {
|
||||
|
||||
/** Whether the `@let` syntax is enabled. */
|
||||
enableLetSyntax?: boolean;
|
||||
|
||||
/** Whether the selectorless syntax is enabled. */
|
||||
enableSelectorless?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -153,6 +156,7 @@ export function parseTemplate(
|
||||
tokenizeExpansionForms: true,
|
||||
tokenizeBlocks: options.enableBlockSyntax ?? true,
|
||||
tokenizeLet: options.enableLetSyntax ?? true,
|
||||
selectorlessEnabled: options.enableSelectorless ?? false,
|
||||
});
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user