5 lines
6.3 KiB
JSON
Raw Normal View History

{
"id": "api/router/Event",
"title": "Event",
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/router\", \"name\": \"@angular/router\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/router/Event\", \"name\": \"Event\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/router\">@angular/router</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/router/src/events.ts?message=docs(router)%3A%20describe%20your%20change...#L446-L481\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/router/src/events.ts#L446-L481\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"event\">Event<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/Event#event\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label type-alias\">type-alias</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p>Router events that allow you to track the lifecycle of the router.</p>\n\n <p><a href=\"api/router/Event#description\">See more...</a></p>\n </section>\n \n \n \n <section class=\"type-alias-overview\">\n <code-example language=\"ts\" hidecopy=\"true\">\n type <a href=\"api/router/Event\" class=\"code-anchor\">Event</a> = <a href=\"api/router/RouterEvent\" class=\"code-anchor\">RouterEvent</a> | <a href=\"api/router/RouteConfigLoadStart\" class=\"code-anchor\">RouteConfigLoadStart</a> | <a href=\"api/router/RouteConfigLoadEnd\" class=\"code-anchor\">RouteConfigLoadEnd</a> | <a href=\"api/router/ChildActivationStart\" class=\"code-anchor\">ChildActivationStart</a> | <a href=\"api/router/ChildActivationEnd\" class=\"code-anchor\">ChildActivationEnd</a> | <a href=\"api/router/ActivationStart\" class=\"code-anchor\">ActivationStart</a> | <a href=\"api/router/ActivationEnd\" class=\"code-anchor\">ActivationEnd</a> | <a href=\"api/router/Scroll\" class=\"code-anchor\">Scroll</a>;\n </code-example>\n </section>\n\n \n\n \n \n<section class=\"description\">\n <h2 id=\"description\">Description<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/Event#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>The events occur in the following sequence:</p>\n<ul>\n<li><a href=\"api/router/NavigationStart\">NavigationStart</a>: Navigation starts.</li>\n<li><a href=\"api/router/RouteConfigLoadStart\">RouteConfigLoadStart</a>: Before\nthe router <a href=\"/guide/router#lazy-loading\">lazy loads</a> a route configuration.</li>\n<li><a href=\"api/router/RouteConfigLoadEnd\">RouteConfigLoadEnd</a>: After a route has been lazy loaded.</li>\n<li><a href=\"api/router/RoutesRecognized\">RoutesRecognized</a>: When the router parses the URL\nand the routes are recognized.</li>\n<li><a href=\"api/router/GuardsCheckStart\">GuardsCheckStart</a>: When the router begins the <em>guards</em>\nphase of routing.</li>\n<li><a href=\"api/router/ChildActivationStart\">ChildActivationStart</a>: When the router\nbegins activating a route's children.</li>\n<li><a href=\"api/router/ActivationStart\">ActivationStart</a>: When the router begins activating a route.
}