This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
$location example in developer guide needs updating #1030
Comments
The point of that example is to say that you can't data-bind $location directly to input-field's ngModel. Instead you have to do it the way as described. |
your example doesn't do two-way data-binding, unless you squint a lot :) |
It just looks like that example was left over from when this.$watch would work in the controllers. On 9 Jun 2012, at 06:52, Igor [email protected] wrote:
|
I see. I'll fix that |
done |
Thanks |
IgorMinar
added a commit
to IgorMinar/angular.js
that referenced
this issue
Jun 11, 2012
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This example is worth updating I think, more than a little confusing the way it is:
https://github.com/angular/angular.js/blob/master/docs/content/guide/dev_guide.services.$location.ngdoc#L626
It should probably be more like this: http://jsfiddle.net/rur_d/me8AX/
The text was updated successfully, but these errors were encountered: