diff options
| author | Igor Minar | 2013-03-08 11:43:37 -0800 |
|---|---|---|
| committer | Igor Minar | 2013-03-08 12:00:34 -0800 |
| commit | 6f71e809141bf89501e55c378921d6e7ec9512bc (patch) | |
| tree | 36996915a75702a8900073385c6c2385bf97dde7 /test/bootstrap/code.html | |
| parent | cb5ce981fb824970cc5bdd68ecb685e9aba3c268 (diff) | |
| download | angular.js-6f71e809141bf89501e55c378921d6e7ec9512bc.tar.bz2 | |
fix($route): make nextRoute.$route private
the `nextRoute` object available in `$routeChangeStart` handler
accidentaly leaked property which pointed to the route definition
currently being matched.
this was done just for the internal needs of the `$route` implementation
and was never documented as public api.
Some confusion arouse around why the $route property was not always
available on the `nextRoute` object (see #1907). The right thing for us
to do is to prefix the property with $$ for now and refactor the code
to remove the property completely in the future. Application developers
should use the `nextRoute` object itself rather than its `$route` property.
The main diff is that nextRoute inherits from the object referenced by $route.
BREAKING CHANGE: in $routeChangeStart event, nextRoute.$route property is gone.
Use the nextRoute object instead of nextRoute.$route.
Closes #1907
Diffstat (limited to 'test/bootstrap/code.html')
0 files changed, 0 insertions, 0 deletions
