-
Notifications
You must be signed in to change notification settings - Fork 27.5k
$locationChangeStart, $locationChangeSuccess events are not documented #1569
Comments
So, had a quick look at the docs and in fact most of the events are documented:
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. |
Also the search does not pick up any of these keywords, neither can Google find them. |
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 ? |
+1, took me a long time to find that these actually existed. |
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 ( Thanks! |
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 |
Would anyone like to submit a PR for 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? |
@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: |
Added documentation for $locationChangeStart and $locationChangeSuccess Closes angular#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 text was updated successfully, but these errors were encountered: