Angular2 get current route's alias
问题 I'm able to get current route's path like: /about, /, /news with location.path(). But how can I get its alias instead (the 'as' part in the definition of a route)? { path: '/about', as: 'About', component: About } Is it possible? 回答1: NOTE: The following has been tested with the 2.0 beta series. The RC versions have an updated router component with breaking changes. The old one has been renamed to router-deprecated . This has not been tested yet against the new router. The following will