-
Notifications
You must be signed in to change notification settings - Fork 13
Expressions used in [[ ]] are being tree shaken by dart2js #6
Comments
Thanks for the report! |
@blois How hard would it be to add [[ ]] expressions to the Angular transformer? |
I read some issue comments/commit messages during the recent weeks that indicate the Angular team is working on direct support of binding to polymer elements but I could have misinterpreted these comments. |
Adding support for expressions in Angular should be as easy as adding them to: https://github.com/angular/angular.dart/blob/master/lib/tools/html_extractor.dart Should be able to add tests for it at: |
Is there a way to plug into the the extractor? This same work got rejected from Angular core, so I would expect changes to the extractor to be too. The point of this separate package it to be independent of Angular core. |
@zoechi Angular's web component support design will not currently work with many of the custom elements in core-* and paper-* because they don't fire 'change' events when properties change. I think this is a major flaw in Angular's web component support, and angular_node_bind sidesteps all those issues by calling Node.bind() directly. |
@justinfagnani Thanks for the feedback! |
Ouch, Angualr's expression extraction support is very limited, making this issue impossible to fix right now. Basically Angular's extractor supports This is tracked in angular.dart issue 1050: dart-archive/angular.dart#1050 |
Currently the binding works only in Dartium, and because of tree shaking the expression used only within
[[ ]]
in html fails to be preserved in generated js afterpub build
.The text was updated successfully, but these errors were encountered: