-
Notifications
You must be signed in to change notification settings - Fork 248
feat(AstParser): Made the AST parser private to the scope (was: fix(parser/eval): fix for '"s" + ("m"|filter) + "e"') #758
Conversation
Seems like the Travis takes a long time, but it's ok on my repo https://travis-ci.org/vicb/angular.dart/builds/21039875 |
Yes, this feature was removed as it was never meant to exist in the first place. This syntax IMHO is very unintuitive. |
|
It's just my opinion, but @mhevery asked me to remove it to simplify things for change detection and deferred loading. If things changed I'm OK with bringing it back. |
Why I find it unintuitive: when I read |
Thanks for the explanation. Didn't get that as a lot of templating languages I know use |. One argument could be it's hard to find on an android keyboard :) |
@kasperl I've handled to most trivial cases in the last commit. Would you mind handling other cases ? If yes, you can send a PR to my branch, I'll merge it. I have not handled Also it should not be possible to make the |
Please revert 5bcea64 instead of this PR. |
I'll merge "feat(AstParser): Made the AST parser private to the scope #753" here |
@mhevery I question I forgot to ask is why filter are |
+1 for Jinja style (which also compatible with what is proposed for Dart). |
We already have lots of People using the current style so unless there are technical reasons, I don't think we should be changing the syntax. The current syntax is from Django, historical reasons. |
Support the Jinja style as an alternative syntax? |
I have tried to merge this in, but ran into issues. Could you look at my work and correct the remaining issues: https://github.com/mhevery/angular.dart/tree/pr-758 |
I find this |
This commit also: - remove the previously registered watch, - add an expression cache
To make sure a string is always returned
closes dart-archive#739 This changes is a BC break: - the "readOnly" parameter has been renamed to "canChangeModel", - the semantic is inversed Before: // Default to digest (readOnly = false by default) scope.watch(exp, fn); // Explicit flush scope.watch(exp, fn, readOnly: true); After // Default to digest (canChangeModel = true by default) scope.watch(exp, fn); // Explicit flush scope.watch(exp, fn, canChangeModel: false);
@mhevery I think this PR is now OK:
Should be ready to be merged ! |
(Oups, mistyped: meant #772 ... ) |
hum... I have this strange bug
Thanks I currently fail to narrow down :( |
Closing, I'll open an other one, cleaned and rebased |
closes #755
That's a 3-liner only but it really doesn't reflect the time spent in debugging !