Skip to content

Commit b5bba65

Browse files
committed
docs($location): clarify the two-way data-binding note
Closes angular#1030
1 parent fb99b53 commit b5bba65

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/content/guide/dev_guide.services.$location.ngdoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,11 @@ then uses the information it obtains to compose hashbang URLs (such as
611611
## Two-way binding to $location
612612

613613
The Angular's compiler currently does not support two-way binding for methods (see {@link
614-
https://github.com/angular/angular.js/issues/404 issue}). If you should require two-way binding,
615-
you will need to specify an extra property that has two watchers. For example:
614+
https://github.com/angular/angular.js/issues/404 issue}). If you should require two-way binding
615+
to the $location object (using {@link api/angular.module.ng.$compileProvider.directive.input.text
616+
ngModel} directive on an input field), you will need to specify an extra model property
617+
(e.g. `locationPath`) with two watchers which push $location updates in both directions. For
618+
example:
616619
<pre>
617620
<!-- html -->
618621
<input type="text" ng-model="locationPath" />

0 commit comments

Comments
 (0)