5 lines
6.3 KiB
JSON

{
"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.</li>\n<li><a href=\"api/router/GuardsCheckEnd\">GuardsCheckEnd</a>: When the router finishes the <em>guards</em>\nphase of routing successfully.</li>\n<li><a href=\"api/router/ResolveStart\">ResolveStart</a>: When the router begins the <em>resolve</em>\nphase of routing.</li>\n<li><a href=\"api/router/ResolveEnd\">ResolveEnd</a>: When the router finishes the <em>resolve</em>\nphase of routing successfuly.</li>\n<li><a href=\"api/router/ChildActivationEnd\">ChildActivationEnd</a>: When the router finishes\nactivating a route's children.</li>\n<li><a href=\"api/router/ActivationEnd\">ActivationEnd</a>: When the router finishes activating a route.</li>\n<li><a href=\"api/router/NavigationEnd\">NavigationEnd</a>: When navigation ends successfully.</li>\n<li><a href=\"api/router/NavigationCancel\">NavigationCancel</a>: When navigation is canceled.</li>\n<li><a href=\"api/router/NavigationError\">NavigationError</a>: When navigation fails\ndue to an unexpected error.</li>\n<li><a href=\"api/router/Scroll\">Scroll</a>: When the user scrolls.</li>\n</ul>\n\n \n</section>\n\n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/forms/FormGroupDirective\n - api/forms/NgForm\n - api/router\n - api/router/ExtraOptions\n - api/router/Router\n - api/router/RouterEvent\n - guide/testing-attribute-directives\n - guide/testing-components-scenarios\n - guide/testing-pipes\n-->\n<!-- links from this doc:\n - /api\n - /guide/router#lazy-loading\n - api/router\n - api/router/ActivationEnd\n - api/router/ActivationStart\n - api/router/ChildActivationEnd\n - api/router/ChildActivationStart\n - api/router/Event#description\n - api/router/Event#event\n - api/router/GuardsCheckEnd\n - api/router/GuardsCheckStart\n - api/router/NavigationCancel\n - api/router/NavigationEnd\n - api/router/NavigationError\n - api/router/NavigationStart\n - api/router/ResolveEnd\n - api/router/ResolveStart\n - api/router/RouteConfigLoadEnd\n - api/router/RouteConfigLoadStart\n - api/router/RouterEvent\n - api/router/RoutesRecognized\n - api/router/Scroll\n - https://github.com/angular/angular/edit/master/packages/router/src/events.ts?message=docs(router)%3A%20describe%20your%20change...#L446-L481\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/router/src/events.ts#L446-L481\n-->"
}