Angular2 router, get route data from url, to display breadcrumbs
Updated for RC5 Instead of starting with the current URL and trying to get the routes from the URL, you can get all of the activated routes (associated with the primary outlet) from the RouterState: After the end of each successful navigation lifecycle, the router builds a tree of ActivatedRoutes, which make up the current … Read more