forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(compiler): Split up binding ingestion for elements and templ…
…ates Previously, we had `ingestBindings` and `ingestBinding`, which required tons of cases to support both elements and templates. Now, we have two separate functions, `ingestElementBindings` and `ingestTemplateBindings`. Thanks to the previous refactoring work, `ingestBinding` is now extremely compact. In fact, it's so compact that, in the elements case, it can just be inlined! Therefore, element binding ingestion is now quite easy to read. The template case continues to be pretty gnarly, although I have already removed some code. In subsequent commits, we will simplify it even further.
- Loading branch information
Showing
2 changed files
with
113 additions
and
85 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