You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$locationChangeStart, $locationChangeSuccess events are not documented #1569
These events are emitted by angular, but they are never mentioned in the documentation: $locationChangeStart, $locationChangeSuccess, $includeContentLoaded, $viewContentLoaded, $routeChangeStart, $routeChangeError
The other events are only mentioned in passing: $routeUpdate, $routeChangeSuccess. It would be nice if events had a place in the documentation.
The only ones missing from the doc seem to be the $location events (or at least I can't find docs for them). Changing the title of this issue to better reflect this.
I'll probably get around to doing it. Is the ng.$location page the appropriate place to do it? Is there similar documentation that I can look at so that I know what kinds of things I should explain?
Activity
pkozlowski-opensource commentedon Nov 14, 2012
So, had a quick look at the docs and in fact most of the events are documented:
$includeContentLoaded: http://docs.angularjs.org/api/ng.directive:ngInclude$viewContentLoaded: http://docs.angularjs.org/api/ng.directive:ngView$routeChangeStart,$routeChangeError: http://docs.angularjs.org/api/ng.$routeThe only ones missing from the doc seem to be the $location events (or at least I can't find docs for them). Changing the title of this issue to better reflect this.
gotoAndBliss commentedon Jan 31, 2013
Also the search does not pick up any of these keywords, neither can Google find them.
boxed commentedon May 10, 2013
Am I right in understanding that the docs are generated from the comment marked with "@ngdoc" in https://github.com/angular/angular.js/blob/master/src/ng/http.js ?
wladston commentedon Jun 6, 2013
+1, took me a long time to find that these actually existed.
btford commentedon Aug 24, 2013
As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months.
Please try the newest versions of Angular (
1.0.8and1.2.0-rc.1), and if the issue persists, comment below so we can discuss it.Thanks!
nickretallack commentedon Aug 24, 2013
What? Don't just close this. Document it. These events are still undocumented in the latest version. http://code.angularjs.org/1.2.0rc1/docs/api/ng.$location
btford commentedon Aug 24, 2013
Would anyone like to submit a PR for this? :)
Nitrodist commentedon Aug 25, 2013
I'll probably get around to doing it. Is the ng.$location page the appropriate place to do it? Is there similar documentation that I can look at so that I know what kinds of things I should explain?
pkozlowski-opensource commentedon Aug 25, 2013
@Nitrodist a PR would be awesome. Yes, $location is the proper place. While preparing a PR you can use documentation of the existing routing events as an example:
https://github.com/angular/angular.js/blob/master/src/ngRoute/route.js#L337-L390
docs($location): document $location's events
docs($location): document $location's events