File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
611611## Two-way binding to $location
612612
613613The 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" />
You can’t perform that action at this time.
0 commit comments