You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/guide/$location.ngdoc
+8-14
Original file line number
Diff line number
Diff line change
@@ -618,27 +618,21 @@ then uses the information it obtains to compose hashbang URLs (such as
618
618
619
619
## Two-way binding to $location
620
620
621
-
The Angular's compiler currently does not support two-way binding for methods (see [issue](https://github.com/angular/angular.js/issues/404)). If you should require two-way binding
622
-
to the $location object (using {@link input[text] ngModel} directive on an input
623
-
field), you will need to specify an extra model property (e.g. `locationPath`) with two {@link ng.$rootScope.Scope#$watch $watchers}
624
-
which push $location updates in both directions. For example:
621
+
Because `$location` uses getters/setters, you can use `ng-model-options="{ getterSetter: true }"`
0 commit comments