File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -611,8 +611,11 @@ then uses the information it obtains to compose hashbang URLs (such as
611
611
## Two-way binding to $location
612
612
613
613
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:
616
619
<pre>
617
620
<!-- html -->
618
621
<input type="text" ng-model="locationPath" />
You can’t perform that action at this time.
0 commit comments