-
Notifications
You must be signed in to change notification settings - Fork 628
Can't set $priority in $bindTo/$scope variable in 0.8 #333
Comments
…ot working ideally with $bindTo, see #333 E2e tests are busted for now until Jacob gets his groove on.
This is also an issue with Angular v1.3.0-beta.15--tested this a.m. We'll need to decide on a workaround here. |
With the changes to Angular (not stripping single '$' prefixed properties from toJson, but only stripping '$$' prefixed properties), this seems more like a bug in Angular. A remnant of the way it used to work? |
Internally, $watch uses angular.equals, which checks for $ prefixes : (
|
With them changing toJSON to only care about All internal properties that shouldn't be watched have $$ (as far as I know). Their whole reason for the change was that some frameworks use single $ properties (and couldn't easily change that). So, this would also need to be updated, in my opinion. |
Slight update... there is $parent, See these: |
(I really don't want to have to use '.priority' - can you tell? :) ) |
Me either. I can't find any way to fix this from our end though. We're going to brainstorm some ideas this afternoon. I'll report our findings back here. |
For now, the solution is simply going to be that you can't set |
See also angular/angular.js#8325 |
It looks like Angular's $watch methods do not trigger for variables prefixed with $ using Angular 1.2.18. So setting $priority does not trigger the 3-way binding as intended. Same is true for $value.
See disabled
xit
tests for these two conditions in the spec.The text was updated successfully, but these errors were encountered: