{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/5175","labels_url":"https://api.github.com/repos/angular/angular/issues/5175/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/5175/comments","events_url":"https://api.github.com/repos/angular/angular/issues/5175/events","html_url":"https://github.com/angular/angular/issues/5175","id":115644223,"number":5175,"title":"angular2 $routeChangeStart , $routeChangeSuccess ,$routeChangeError","user":{"login":"mashaly100200","id":6259704,"avatar_url":"https://avatars.githubusercontent.com/u/6259704?v=3","gravatar_id":"","url":"https://api.github.com/users/mashaly100200","html_url":"https://github.com/mashaly100200","followers_url":"https://api.github.com/users/mashaly100200/followers","following_url":"https://api.github.com/users/mashaly100200/following{/other_user}","gists_url":"https://api.github.com/users/mashaly100200/gists{/gist_id}","starred_url":"https://api.github.com/users/mashaly100200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mashaly100200/subscriptions","organizations_url":"https://api.github.com/users/mashaly100200/orgs","repos_url":"https://api.github.com/users/mashaly100200/repos","events_url":"https://api.github.com/users/mashaly100200/events{/privacy}","received_events_url":"https://api.github.com/users/mashaly100200/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-07T07:28:20Z","updated_at":"2015-11-07T23:24:17Z","closed_at":null,"body":"i was trying to get equivalent of these angular1 events $routeChangeStart , $routeChangeSuccess ,$routeChangeError\r\n\r\n- if i use OnActivate, OnDeactivate  events , it need to add it to every component  :(\r\n\r\n- also i tried to implement my own RouterOutlet but i can't access previous instruction on activate , deactivate events, also i couldn't know how to handle route Change Error\r\n\r\n- also router.subscribe gave me the name only , but i want to get the current and next instruction objects to change some properties \r\n \r\nmy target is:\r\n1- show loading indicator when start change page , and hide it when finish change page.\r\n2- make  transition animation rtl or ltr for current and next instruction \r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/154764823","html_url":"https://github.com/angular/angular/issues/5175#issuecomment-154764823","issue_url":"https://api.github.com/repos/angular/angular/issues/5175","id":154764823,"user":{"login":"brandonroberts","id":42211,"avatar_url":"https://avatars.githubusercontent.com/u/42211?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonroberts","html_url":"https://github.com/brandonroberts","followers_url":"https://api.github.com/users/brandonroberts/followers","following_url":"https://api.github.com/users/brandonroberts/following{/other_user}","gists_url":"https://api.github.com/users/brandonroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonroberts/subscriptions","organizations_url":"https://api.github.com/users/brandonroberts/orgs","repos_url":"https://api.github.com/users/brandonroberts/repos","events_url":"https://api.github.com/users/brandonroberts/events{/privacy}","received_events_url":"https://api.github.com/users/brandonroberts/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T23:24:16Z","updated_at":"2015-11-07T23:24:16Z","body":"@mashaly100200 the router exposes a navigating property that you can use to check when routing starts and finishes. There isn't currently a way that produces some type of indication of a route change error."}}