-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(templates): introduce quoted expressions to support 3rd-party ex…
…pression languages A quoted expression is: quoted expression = prefix `:` uninterpretedExpression prefix = identifier uninterpretedExpression = arbitrary string Example: "route:/some/route" Quoted expressions are parsed into a new AST node type Quote. The `prefix` part of the node must be a legal identifier. The `uninterpretedExpression` part of the node is an arbitrary string that Angular does not interpret. This feature is meant to be used together with template AST transformers introduced in a43ed79. The transformer would interpret the quoted expression and convert it into a standard AST no longer containing quoted expressions. Angular will continue compiling the resulting AST normally.
- Loading branch information
Showing
5 changed files
with
85 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters