diff options
| author | Igor Minar | 2012-06-09 06:57:55 -0700 | 
|---|---|---|
| committer | Igor Minar | 2012-06-09 06:57:55 -0700 | 
| commit | b5bba65a9353ca9dc03b8d0c3c9b06d9c4cdacdf (patch) | |
| tree | aaa051ddb6ccc08472acef2f0fded63ee0591fa2 /docs/content/guide/dev_guide.services.$location.ngdoc | |
| parent | fb99b539b4d851773b43f1564f7032adb157c0db (diff) | |
| download | angular.js-b5bba65a9353ca9dc03b8d0c3c9b06d9c4cdacdf.tar.bz2 | |
docs($location): clarify the two-way data-binding note
Closes #1030
Diffstat (limited to 'docs/content/guide/dev_guide.services.$location.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.services.$location.ngdoc | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/docs/content/guide/dev_guide.services.$location.ngdoc b/docs/content/guide/dev_guide.services.$location.ngdoc index 7668b60a..c5396b11 100644 --- a/docs/content/guide/dev_guide.services.$location.ngdoc +++ b/docs/content/guide/dev_guide.services.$location.ngdoc @@ -611,8 +611,11 @@ then uses the information it obtains to compose hashbang URLs (such as  ## Two-way binding to $location  The Angular's compiler currently does not support two-way binding for methods (see {@link -https://github.com/angular/angular.js/issues/404 issue}).  If you should require two-way binding, -you will need to specify an extra property that has two watchers. For example: +https://github.com/angular/angular.js/issues/404 issue}).  If you should require two-way binding +to the $location object (using {@link api/angular.module.ng.$compileProvider.directive.input.text +ngModel} directive on an input field), you will need to specify an extra model property +(e.g. `locationPath`) with two watchers which push $location updates in both directions. For +example:  <pre>  <!-- html -->  <input type="text" ng-model="locationPath" /> | 
