parent
fef9cebed0
commit
ff028f0b39
|
@ -43,6 +43,7 @@ import {UrlSegment, UrlSegmentGroup} from './url_tree';
|
||||||
* - `loadChildren` is a reference to lazy loaded child routes. See `LoadChildren` for more
|
* - `loadChildren` is a reference to lazy loaded child routes. See `LoadChildren` for more
|
||||||
* info.
|
* info.
|
||||||
*
|
*
|
||||||
|
* @usageNotes
|
||||||
* ### Simple Configuration
|
* ### Simple Configuration
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
|
|
|
@ -374,12 +374,14 @@ export class Router {
|
||||||
get url(): string { return this.serializeUrl(this.currentUrlTree); }
|
get url(): string { return this.serializeUrl(this.currentUrlTree); }
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
triggerEvent(e: Event): void { (this.events as Subject<Event>).next(e); }
|
triggerEvent(event: Event): void { (this.events as Subject<Event>).next(event); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets the configuration used for navigation and generating links.
|
* Resets the configuration used for navigation and generating links.
|
||||||
*
|
*
|
||||||
* ### Usage
|
* @usageNotes
|
||||||
|
*
|
||||||
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* router.resetConfig([
|
* router.resetConfig([
|
||||||
|
@ -414,7 +416,9 @@ export class Router {
|
||||||
* When given an activate route, applies the given commands starting from the route.
|
* When given an activate route, applies the given commands starting from the route.
|
||||||
* When not given a route, applies the given command starting from the root.
|
* When not given a route, applies the given command starting from the root.
|
||||||
*
|
*
|
||||||
* ### Usage
|
* @usageNotes
|
||||||
|
*
|
||||||
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* // create /team/33/user/11
|
* // create /team/33/user/11
|
||||||
|
@ -486,7 +490,9 @@ export class Router {
|
||||||
* - resolves to 'false' when navigation fails,
|
* - resolves to 'false' when navigation fails,
|
||||||
* - is rejected when an error happens.
|
* - is rejected when an error happens.
|
||||||
*
|
*
|
||||||
* ### Usage
|
* @usageNotes
|
||||||
|
*
|
||||||
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* router.navigateByUrl("/team/33/user/11");
|
* router.navigateByUrl("/team/33/user/11");
|
||||||
|
@ -522,7 +528,9 @@ export class Router {
|
||||||
* - resolves to 'false' when navigation fails,
|
* - resolves to 'false' when navigation fails,
|
||||||
* - is rejected when an error happens.
|
* - is rejected when an error happens.
|
||||||
*
|
*
|
||||||
* ### Usage
|
* @usageNotes
|
||||||
|
*
|
||||||
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* router.navigate(['team', 33, 'user', 11], {relativeTo: route});
|
* router.navigate(['team', 33, 'user', 11], {relativeTo: route});
|
||||||
|
|
|
@ -225,6 +225,7 @@ export function provideForRootGuard(router: Router): any {
|
||||||
*
|
*
|
||||||
* Registers routes.
|
* Registers routes.
|
||||||
*
|
*
|
||||||
|
* @usageNotes
|
||||||
* ### Example
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
|
|
|
@ -26,6 +26,7 @@ import {Tree, TreeNode} from './utils/tree';
|
||||||
* RouterState is a tree of activated routes. Every node in this tree knows about the "consumed" URL
|
* RouterState is a tree of activated routes. Every node in this tree knows about the "consumed" URL
|
||||||
* segments, the extracted parameters, and the resolved data.
|
* segments, the extracted parameters, and the resolved data.
|
||||||
*
|
*
|
||||||
|
* @usageNotes
|
||||||
* ### Example
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
|
@ -340,6 +341,7 @@ export class ActivatedRouteSnapshot {
|
||||||
* This is a tree of activated route snapshots. Every node in this tree knows about
|
* This is a tree of activated route snapshots. Every node in this tree knows about
|
||||||
* the "consumed" URL segments, the extracted parameters, and the resolved data.
|
* the "consumed" URL segments, the extracted parameters, and the resolved data.
|
||||||
*
|
*
|
||||||
|
* @usageNotes
|
||||||
* ### Example
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
|
|
|
@ -82,6 +82,7 @@ function containsSegmentGroupHelper(
|
||||||
* serialized tree.
|
* serialized tree.
|
||||||
* UrlTree is a data structure that provides a lot of affordances in dealing with URLs
|
* UrlTree is a data structure that provides a lot of affordances in dealing with URLs
|
||||||
*
|
*
|
||||||
|
* @usageNotes
|
||||||
* ### Example
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
|
@ -173,7 +174,8 @@ export class UrlSegmentGroup {
|
||||||
* A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix
|
* A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix
|
||||||
* parameters associated with the segment.
|
* parameters associated with the segment.
|
||||||
*
|
*
|
||||||
* ## Example
|
* @usageNotes
|
||||||
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* @Component({templateUrl:'template.html'})
|
* @Component({templateUrl:'template.html'})
|
||||||
|
|
|
@ -147,6 +147,7 @@ export function setupTestingRouter(
|
||||||
* It provides spy implementations of `Location`, `LocationStrategy`, and {@link
|
* It provides spy implementations of `Location`, `LocationStrategy`, and {@link
|
||||||
* NgModuleFactoryLoader}.
|
* NgModuleFactoryLoader}.
|
||||||
*
|
*
|
||||||
|
* @usageNotes
|
||||||
* ### Example
|
* ### Example
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
|
|
Loading…
Reference in New Issue