@angular/router 7.0.0-rc.1 → 7.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/bundles/router-testing.umd.js +4 -4
  2. package/bundles/router-testing.umd.js.map +1 -1
  3. package/bundles/router-testing.umd.min.js +1 -1
  4. package/bundles/router-testing.umd.min.js.map +1 -1
  5. package/bundles/router-upgrade.umd.js +3 -3
  6. package/bundles/router-upgrade.umd.js.map +1 -1
  7. package/bundles/router-upgrade.umd.min.js +1 -1
  8. package/bundles/router-upgrade.umd.min.js.map +1 -1
  9. package/bundles/router.umd.js +56 -50
  10. package/bundles/router.umd.js.map +1 -1
  11. package/bundles/router.umd.min.js +4 -4
  12. package/bundles/router.umd.min.js.map +1 -1
  13. package/esm2015/src/config.js +2 -1
  14. package/esm2015/src/directives/router_link.js +3 -3
  15. package/esm2015/src/directives/router_link_active.js +2 -2
  16. package/esm2015/src/directives/router_outlet.js +2 -2
  17. package/esm2015/src/events.js +19 -17
  18. package/esm2015/src/interfaces.js +6 -5
  19. package/esm2015/src/route_reuse_strategy.js +2 -2
  20. package/esm2015/src/router.js +4 -3
  21. package/esm2015/src/router_config_loader.js +2 -2
  22. package/esm2015/src/router_module.js +6 -6
  23. package/esm2015/src/router_outlet_context.js +3 -3
  24. package/esm2015/src/router_preloader.js +5 -5
  25. package/esm2015/src/router_state.js +5 -5
  26. package/esm2015/src/shared.js +4 -4
  27. package/esm2015/src/url_handling_strategy.js +3 -3
  28. package/esm2015/src/url_tree.js +6 -6
  29. package/esm2015/src/utils/preactivation.js +3 -3
  30. package/esm2015/src/version.js +5 -3
  31. package/esm2015/testing/src/router_testing_module.js +4 -4
  32. package/esm2015/upgrade/src/upgrade.js +3 -3
  33. package/esm5/src/config.js +1 -1
  34. package/esm5/src/directives/router_link.js +3 -3
  35. package/esm5/src/directives/router_link_active.js +2 -2
  36. package/esm5/src/directives/router_outlet.js +2 -2
  37. package/esm5/src/events.js +19 -17
  38. package/esm5/src/interfaces.js +1 -1
  39. package/esm5/src/route_reuse_strategy.js +2 -2
  40. package/esm5/src/router.js +3 -2
  41. package/esm5/src/router_config_loader.js +2 -2
  42. package/esm5/src/router_module.js +5 -5
  43. package/esm5/src/router_outlet_context.js +3 -3
  44. package/esm5/src/router_preloader.js +5 -5
  45. package/esm5/src/router_state.js +5 -5
  46. package/esm5/src/shared.js +3 -3
  47. package/esm5/src/url_handling_strategy.js +3 -3
  48. package/esm5/src/url_tree.js +6 -6
  49. package/esm5/src/utils/preactivation.js +3 -3
  50. package/esm5/src/version.js +5 -2
  51. package/esm5/testing/src/router_testing_module.js +4 -4
  52. package/esm5/upgrade/src/upgrade.js +3 -3
  53. package/fesm2015/router.js +56 -51
  54. package/fesm2015/router.js.map +1 -1
  55. package/fesm2015/testing.js +4 -4
  56. package/fesm2015/testing.js.map +1 -1
  57. package/fesm2015/upgrade.js +3 -3
  58. package/fesm2015/upgrade.js.map +1 -1
  59. package/fesm5/router.js +56 -50
  60. package/fesm5/router.js.map +1 -1
  61. package/fesm5/testing.js +4 -4
  62. package/fesm5/testing.js.map +1 -1
  63. package/fesm5/upgrade.js +3 -3
  64. package/fesm5/upgrade.js.map +1 -1
  65. package/package.json +4 -4
  66. package/router.metadata.json +1 -1
  67. package/src/config.d.ts +9 -3
  68. package/src/directives/router_link.d.ts +2 -2
  69. package/src/directives/router_link_active.d.ts +1 -1
  70. package/src/directives/router_outlet.d.ts +1 -1
  71. package/src/events.d.ts +20 -18
  72. package/src/interfaces.d.ts +5 -4
  73. package/src/route_reuse_strategy.d.ts +2 -2
  74. package/src/router.d.ts +3 -3
  75. package/src/router_config_loader.d.ts +1 -1
  76. package/src/router_module.d.ts +6 -6
  77. package/src/router_outlet_context.d.ts +2 -2
  78. package/src/router_preloader.d.ts +4 -4
  79. package/src/router_state.d.ts +4 -4
  80. package/src/shared.d.ts +4 -4
  81. package/src/url_handling_strategy.d.ts +2 -2
  82. package/src/url_tree.d.ts +5 -5
  83. package/src/version.d.ts +3 -0
  84. package/testing/src/router_testing_module.d.ts +4 -3
  85. package/testing/testing.metadata.json +1 -1
  86. package/upgrade/src/upgrade.d.ts +2 -2
package/src/events.d.ts CHANGED
@@ -16,7 +16,7 @@ import { ActivatedRouteSnapshot, RouterStateSnapshot } from './router_state';
16
16
  * * 'popstate'--triggered by a popstate event
17
17
  * * 'hashchange'--triggered by a hashchange event
18
18
  *
19
- * @experimental
19
+ * @publicApi
20
20
  */
21
21
  export declare type NavigationTrigger = 'imperative' | 'popstate' | 'hashchange';
22
22
  /**
@@ -37,7 +37,7 @@ export declare type NavigationTrigger = 'imperative' | 'popstate' | 'hashchange'
37
37
  * }
38
38
  * ```
39
39
  *
40
- * @experimental
40
+ * @publicApi
41
41
  */
42
42
  export declare class RouterEvent {
43
43
  /** @docsNotRequired */
@@ -55,7 +55,7 @@ export declare class RouterEvent {
55
55
  *
56
56
  * Represents an event triggered when a navigation starts.
57
57
  *
58
- *
58
+ * @publicApi
59
59
  */
60
60
  export declare class NavigationStart extends RouterEvent {
61
61
  /**
@@ -100,7 +100,7 @@ export declare class NavigationStart extends RouterEvent {
100
100
  *
101
101
  * Represents an event triggered when a navigation ends successfully.
102
102
  *
103
- *
103
+ * @publicApi
104
104
  */
105
105
  export declare class NavigationEnd extends RouterEvent {
106
106
  /** @docsNotRequired */
@@ -120,7 +120,7 @@ export declare class NavigationEnd extends RouterEvent {
120
120
  *
121
121
  * Represents an event triggered when a navigation is canceled.
122
122
  *
123
- *
123
+ * @publicApi
124
124
  */
125
125
  export declare class NavigationCancel extends RouterEvent {
126
126
  /** @docsNotRequired */
@@ -140,7 +140,7 @@ export declare class NavigationCancel extends RouterEvent {
140
140
  *
141
141
  * Represents an event triggered when a navigation fails due to an unexpected error.
142
142
  *
143
- *
143
+ * @publicApi
144
144
  */
145
145
  export declare class NavigationError extends RouterEvent {
146
146
  /** @docsNotRequired */
@@ -160,7 +160,7 @@ export declare class NavigationError extends RouterEvent {
160
160
  *
161
161
  * Represents an event triggered when routes are recognized.
162
162
  *
163
- *
163
+ * @publicApi
164
164
  */
165
165
  export declare class RoutesRecognized extends RouterEvent {
166
166
  /** @docsNotRequired */
@@ -184,7 +184,7 @@ export declare class RoutesRecognized extends RouterEvent {
184
184
  *
185
185
  * Represents the start of the Guard phase of routing.
186
186
  *
187
- * @experimental
187
+ * @publicApi
188
188
  */
189
189
  export declare class GuardsCheckStart extends RouterEvent {
190
190
  /** @docsNotRequired */
@@ -207,7 +207,7 @@ export declare class GuardsCheckStart extends RouterEvent {
207
207
  *
208
208
  * Represents the end of the Guard phase of routing.
209
209
  *
210
- * @experimental
210
+ * @publicApi
211
211
  */
212
212
  export declare class GuardsCheckEnd extends RouterEvent {
213
213
  /** @docsNotRequired */
@@ -237,7 +237,7 @@ export declare class GuardsCheckEnd extends RouterEvent {
237
237
  * in the "resolve" phase whether there's things to resolve or not. In the future this
238
238
  * behavior may change to only run when there are things to be resolved.
239
239
  *
240
- * @experimental
240
+ * @publicApi
241
241
  */
242
242
  export declare class ResolveStart extends RouterEvent {
243
243
  /** @docsNotRequired */
@@ -261,7 +261,7 @@ export declare class ResolveStart extends RouterEvent {
261
261
  * Represents the end of the Resolve phase of routing. See note on
262
262
  * `ResolveStart` for use of this experimental API.
263
263
  *
264
- * @experimental
264
+ * @publicApi
265
265
  */
266
266
  export declare class ResolveEnd extends RouterEvent {
267
267
  /** @docsNotRequired */
@@ -284,7 +284,7 @@ export declare class ResolveEnd extends RouterEvent {
284
284
  *
285
285
  * Represents an event triggered before lazy loading a route config.
286
286
  *
287
- * @experimental
287
+ * @publicApi
288
288
  */
289
289
  export declare class RouteConfigLoadStart {
290
290
  /** @docsNotRequired */
@@ -299,7 +299,7 @@ export declare class RouteConfigLoadStart {
299
299
  *
300
300
  * Represents an event triggered when a route has been lazy loaded.
301
301
  *
302
- * @experimental
302
+ * @publicApi
303
303
  */
304
304
  export declare class RouteConfigLoadEnd {
305
305
  /** @docsNotRequired */
@@ -315,7 +315,7 @@ export declare class RouteConfigLoadEnd {
315
315
  * Represents the start of end of the Resolve phase of routing. See note on
316
316
  * `ChildActivationEnd` for use of this experimental API.
317
317
  *
318
- * @experimental
318
+ * @publicApi
319
319
  */
320
320
  export declare class ChildActivationStart {
321
321
  /** @docsNotRequired */
@@ -331,7 +331,7 @@ export declare class ChildActivationStart {
331
331
  * Represents the start of end of the Resolve phase of routing. See note on
332
332
  * `ChildActivationStart` for use of this experimental API.
333
333
  *
334
- * @experimental
334
+ * @publicApi
335
335
  */
336
336
  export declare class ChildActivationEnd {
337
337
  /** @docsNotRequired */
@@ -347,7 +347,7 @@ export declare class ChildActivationEnd {
347
347
  * Represents the start of end of the Resolve phase of routing. See note on
348
348
  * `ActivationEnd` for use of this experimental API.
349
349
  *
350
- * @experimental
350
+ * @publicApi
351
351
  */
352
352
  export declare class ActivationStart {
353
353
  /** @docsNotRequired */
@@ -363,7 +363,7 @@ export declare class ActivationStart {
363
363
  * Represents the start of end of the Resolve phase of routing. See note on
364
364
  * `ActivationStart` for use of this experimental API.
365
365
  *
366
- * @experimental
366
+ * @publicApi
367
367
  */
368
368
  export declare class ActivationEnd {
369
369
  /** @docsNotRequired */
@@ -377,6 +377,8 @@ export declare class ActivationEnd {
377
377
  * @description
378
378
  *
379
379
  * Represents a scrolling event.
380
+ *
381
+ * @publicApi
380
382
  */
381
383
  export declare class Scroll {
382
384
  /** @docsNotRequired */
@@ -418,6 +420,6 @@ export declare class Scroll {
418
420
  * - `NavigationError`
419
421
  * - `Scroll`
420
422
  *
421
- *
423
+ * @publicApi
422
424
  */
423
425
  export declare type Event = RouterEvent | RouteConfigLoadStart | RouteConfigLoadEnd | ChildActivationStart | ChildActivationEnd | ActivationStart | ActivationEnd | Scroll;
@@ -72,7 +72,7 @@ import { UrlSegment } from './url_tree';
72
72
  * class AppModule {}
73
73
  * ```
74
74
  *
75
- *
75
+ * @publicApi
76
76
  */
77
77
  export interface CanActivate {
78
78
  canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean;
@@ -150,7 +150,7 @@ export interface CanActivate {
150
150
  * class AppModule {}
151
151
  * ```
152
152
  *
153
- *
153
+ * @publicApi
154
154
  */
155
155
  export interface CanActivateChild {
156
156
  canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean;
@@ -221,7 +221,7 @@ export interface CanActivateChild {
221
221
  * class AppModule {}
222
222
  * ```
223
223
  *
224
- *
224
+ * @publicApi
225
225
  */
226
226
  export interface CanDeactivate<T> {
227
227
  canDeactivate(component: T, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean;
@@ -292,6 +292,7 @@ export interface CanDeactivate<T> {
292
292
  * class AppModule {}
293
293
  * ```
294
294
  *
295
+ * @publicApi
295
296
  */
296
297
  export interface Resolve<T> {
297
298
  resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<T> | Promise<T> | T;
@@ -358,7 +359,7 @@ export interface Resolve<T> {
358
359
  * class AppModule {}
359
360
  * ```
360
361
  *
361
- *
362
+ * @publicApi
362
363
  */
363
364
  export interface CanLoad {
364
365
  canLoad(route: Route, segments: UrlSegment[]): Observable<boolean> | Promise<boolean> | boolean;
@@ -14,7 +14,7 @@ import { ActivatedRouteSnapshot } from './router_state';
14
14
  * This is an opaque value the router will give to a custom route reuse strategy
15
15
  * to store and retrieve later on.
16
16
  *
17
- * @experimental
17
+ * @publicApi
18
18
  */
19
19
  export declare type DetachedRouteHandle = {};
20
20
  /**
@@ -22,7 +22,7 @@ export declare type DetachedRouteHandle = {};
22
22
  *
23
23
  * Provides a way to customize when activated routes get reused.
24
24
  *
25
- * @experimental
25
+ * @publicApi
26
26
  */
27
27
  export declare abstract class RouteReuseStrategy {
28
28
  /** Determines if this route (and its subtree) should be detached to be reused later */
package/src/router.d.ts CHANGED
@@ -22,7 +22,7 @@ import { Checks } from './utils/preactivation';
22
22
  *
23
23
  * Represents the extra options used during navigation.
24
24
  *
25
- *
25
+ * @publicApi
26
26
  */
27
27
  export interface NavigationExtras {
28
28
  /**
@@ -135,7 +135,7 @@ export interface NavigationExtras {
135
135
  * If the handler throws an exception, the navigation promise will be rejected with
136
136
  * the exception.
137
137
  *
138
- *
138
+ * @publicApi
139
139
  */
140
140
  export declare type ErrorHandler = (error: any) => any;
141
141
  export declare type NavigationTransition = {
@@ -169,7 +169,7 @@ export declare type NavigationTransition = {
169
169
  *
170
170
  * @ngModule RouterModule
171
171
  *
172
- *
172
+ * @publicApi
173
173
  */
174
174
  export declare class Router {
175
175
  private rootComponentType;
@@ -10,7 +10,7 @@ import { Observable } from 'rxjs';
10
10
  import { LoadedRouterConfig, Route } from './config';
11
11
  /**
12
12
  * @docsNotRequired
13
- * @experimental
13
+ * @publicApi
14
14
  */
15
15
  export declare const ROUTES: InjectionToken<Route[][]>;
16
16
  export declare class RouterConfigLoader {
@@ -20,7 +20,7 @@ import { UrlSerializer, UrlTree } from './url_tree';
20
20
  *
21
21
  * Is used in DI to configure the router.
22
22
  *
23
- *
23
+ * @publicApi
24
24
  */
25
25
  export declare const ROUTER_CONFIGURATION: InjectionToken<ExtraOptions>;
26
26
  /**
@@ -78,7 +78,7 @@ export declare function routerNgProbeToken(): NgProbeToken;
78
78
  * [Read this developer guide](https://angular.io/docs/ts/latest/guide/router.html) to get an
79
79
  * overview of how the router should be used.
80
80
  *
81
- *
81
+ * @publicApi
82
82
  */
83
83
  export declare class RouterModule {
84
84
  constructor(guard: any, router: Router);
@@ -123,7 +123,7 @@ export declare function provideForRootGuard(router: Router): any;
123
123
  * class MyNgModule {}
124
124
  * ```
125
125
  *
126
- *
126
+ * @publicApi
127
127
  */
128
128
  export declare function provideRoutes(routes: Routes): any;
129
129
  /**
@@ -149,7 +149,7 @@ export declare function provideRoutes(routes: Routes): any;
149
149
  *
150
150
  * The 'legacy_enabled' and 'legacy_disabled' should not be used for new applications.
151
151
  *
152
- * @experimental
152
+ * @publicApi
153
153
  */
154
154
  export declare type InitialNavigation = true | false | 'enabled' | 'disabled' | 'legacy_enabled' | 'legacy_disabled';
155
155
  /**
@@ -157,7 +157,7 @@ export declare type InitialNavigation = true | false | 'enabled' | 'disabled' |
157
157
  *
158
158
  * Represents options to configure the router.
159
159
  *
160
- *
160
+ * @publicApi
161
161
  */
162
162
  export interface ExtraOptions {
163
163
  /**
@@ -343,7 +343,7 @@ export declare function getBootstrapListener(r: RouterInitializer): any;
343
343
  /**
344
344
  * A token for the router initializer that will be called after the app is bootstrapped.
345
345
  *
346
- * @experimental
346
+ * @publicApi
347
347
  */
348
348
  export declare const ROUTER_INITIALIZER: InjectionToken<(compRef: ComponentRef<any>) => void>;
349
349
  export declare function provideRouterInitializer(): (typeof RouterInitializer | {
@@ -11,7 +11,7 @@ import { ActivatedRoute } from './router_state';
11
11
  /**
12
12
  * Store contextual information about a `RouterOutlet`
13
13
  *
14
- *
14
+ * @publicApi
15
15
  */
16
16
  export declare class OutletContext {
17
17
  outlet: RouterOutlet | null;
@@ -23,7 +23,7 @@ export declare class OutletContext {
23
23
  /**
24
24
  * Store contextual information about the children (= nested) `RouterOutlet`
25
25
  *
26
- *
26
+ * @publicApi
27
27
  */
28
28
  export declare class ChildrenOutletContexts {
29
29
  private contexts;
@@ -14,7 +14,7 @@ import { Router } from './router';
14
14
  *
15
15
  * Provides a preloading strategy.
16
16
  *
17
- * @experimental
17
+ * @publicApi
18
18
  */
19
19
  export declare abstract class PreloadingStrategy {
20
20
  abstract preload(route: Route, fn: () => Observable<any>): Observable<any>;
@@ -28,7 +28,7 @@ export declare abstract class PreloadingStrategy {
28
28
  * RouteModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})
29
29
  * ```
30
30
  *
31
- * @experimental
31
+ * @publicApi
32
32
  */
33
33
  export declare class PreloadAllModules implements PreloadingStrategy {
34
34
  preload(route: Route, fn: () => Observable<any>): Observable<any>;
@@ -40,7 +40,7 @@ export declare class PreloadAllModules implements PreloadingStrategy {
40
40
  *
41
41
  * This strategy is enabled by default.
42
42
  *
43
- * @experimental
43
+ * @publicApi
44
44
  */
45
45
  export declare class NoPreloading implements PreloadingStrategy {
46
46
  preload(route: Route, fn: () => Observable<any>): Observable<any>;
@@ -55,7 +55,7 @@ export declare class NoPreloading implements PreloadingStrategy {
55
55
  *
56
56
  * If a route is protected by `canLoad` guards, the preloaded will not load it.
57
57
  *
58
- *
58
+ * @publicApi
59
59
  */
60
60
  export declare class RouterPreloader implements OnDestroy {
61
61
  private router;
@@ -37,7 +37,7 @@ import { Tree } from './utils/tree';
37
37
  *
38
38
  * See `ActivatedRoute` for more information.
39
39
  *
40
- *
40
+ * @publicApi
41
41
  */
42
42
  export declare class RouterState extends Tree<ActivatedRoute> {
43
43
  /** The current snapshot of the router state */
@@ -64,7 +64,7 @@ export declare function createEmptyStateSnapshot(urlTree: UrlTree, rootComponent
64
64
  * }
65
65
  * ```
66
66
  *
67
- *
67
+ * @publicApi
68
68
  */
69
69
  export declare class ActivatedRoute {
70
70
  /** An observable of the URL segments matched by this route */
@@ -118,7 +118,7 @@ export declare type ParamsInheritanceStrategy = 'emptyOnly' | 'always';
118
118
  * }
119
119
  * ```
120
120
  *
121
- *
121
+ * @publicApi
122
122
  */
123
123
  export declare class ActivatedRouteSnapshot {
124
124
  /** The URL segments matched by this route */
@@ -176,7 +176,7 @@ export declare class ActivatedRouteSnapshot {
176
176
  * }
177
177
  * ```
178
178
  *
179
- *
179
+ * @publicApi
180
180
  */
181
181
  export declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
182
182
  /** The url from which this snapshot was created */
package/src/shared.d.ts CHANGED
@@ -12,13 +12,13 @@ import { UrlSegment, UrlSegmentGroup } from './url_tree';
12
12
  *
13
13
  * Name of the primary outlet.
14
14
  *
15
- *
15
+ * @publicApi
16
16
  */
17
17
  export declare const PRIMARY_OUTLET = "primary";
18
18
  /**
19
19
  * A collection of parameters.
20
20
  *
21
- *
21
+ * @publicApi
22
22
  */
23
23
  export declare type Params = {
24
24
  [key: string]: any;
@@ -33,7 +33,7 @@ export declare type Params = {
33
33
  * The API is inspired by the URLSearchParams interface.
34
34
  * see https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
35
35
  *
36
- *
36
+ * @publicApi
37
37
  */
38
38
  export interface ParamMap {
39
39
  has(name: string): boolean;
@@ -56,7 +56,7 @@ export interface ParamMap {
56
56
  /**
57
57
  * Convert a `Params` instance to a `ParamMap`.
58
58
  *
59
- *
59
+ * @publicApi
60
60
  */
61
61
  export declare function convertToParamMap(params: Params): ParamMap;
62
62
  export declare function navigationCancelingError(message: string): Error;
@@ -11,7 +11,7 @@ import { UrlTree } from './url_tree';
11
11
  *
12
12
  * Provides a way to migrate AngularJS applications to Angular.
13
13
  *
14
- * @experimental
14
+ * @publicApi
15
15
  */
16
16
  export declare abstract class UrlHandlingStrategy {
17
17
  /**
@@ -34,7 +34,7 @@ export declare abstract class UrlHandlingStrategy {
34
34
  abstract merge(newUrlPart: UrlTree, rawUrl: UrlTree): UrlTree;
35
35
  }
36
36
  /**
37
- * @experimental
37
+ * @publicApi
38
38
  */
39
39
  export declare class DefaultUrlHandlingStrategy implements UrlHandlingStrategy {
40
40
  shouldProcessUrl(url: UrlTree): boolean;
package/src/url_tree.d.ts CHANGED
@@ -36,7 +36,7 @@ export declare function containsTree(container: UrlTree, containee: UrlTree, exa
36
36
  * }
37
37
  * ```
38
38
  *
39
- *
39
+ * @publicApi
40
40
  */
41
41
  export declare class UrlTree {
42
42
  /** The root segment group of the URL tree */
@@ -56,7 +56,7 @@ export declare class UrlTree {
56
56
  *
57
57
  * See `UrlTree` for more information.
58
58
  *
59
- *
59
+ * @publicApi
60
60
  */
61
61
  export declare class UrlSegmentGroup {
62
62
  /** The URL segments of this group. See `UrlSegment` for more information */
@@ -105,7 +105,7 @@ export declare class UrlSegmentGroup {
105
105
  * }
106
106
  * ```
107
107
  *
108
- *
108
+ * @publicApi
109
109
  */
110
110
  export declare class UrlSegment {
111
111
  /** The path part of a URL segment */
@@ -138,7 +138,7 @@ export declare function mapChildrenIntoArray<T>(segment: UrlSegmentGroup, fn: (v
138
138
  *
139
139
  * See `DefaultUrlSerializer` for an example of a URL serializer.
140
140
  *
141
- *
141
+ * @publicApi
142
142
  */
143
143
  export declare abstract class UrlSerializer {
144
144
  /** Parse a url into a `UrlTree` */
@@ -162,7 +162,7 @@ export declare abstract class UrlSerializer {
162
162
  * colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to
163
163
  * specify route specific parameters.
164
164
  *
165
- *
165
+ * @publicApi
166
166
  */
167
167
  export declare class DefaultUrlSerializer implements UrlSerializer {
168
168
  /** Parses a url into a `UrlTree` */
package/src/version.d.ts CHANGED
@@ -11,4 +11,7 @@
11
11
  * Entry point for all public APIs of the common package.
12
12
  */
13
13
  import { Version } from '@angular/core';
14
+ /**
15
+ * @publicApi
16
+ */
14
17
  export declare const VERSION: Version;
@@ -35,7 +35,7 @@ import { ChildrenOutletContexts, ExtraOptions, Route, Router, Routes, UrlHandlin
35
35
  * router.navigateByUrl('/lazy/loaded');
36
36
  * ```
37
37
  *
38
- *
38
+ * @publicApi
39
39
  */
40
40
  export declare class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader {
41
41
  private compiler;
@@ -58,7 +58,7 @@ export declare class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader {
58
58
  /**
59
59
  * Router setup factory function used for testing.
60
60
  *
61
- *
61
+ * @publicApi
62
62
  */
63
63
  export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], opts?: ExtraOptions, urlHandlingStrategy?: UrlHandlingStrategy): Router;
64
64
  /**
@@ -66,6 +66,7 @@ export declare function setupTestingRouter(urlSerializer: UrlSerializer, context
66
66
  *
67
67
  * @deprecated As of v5.2. The 2nd-to-last argument should be `ExtraOptions`, not
68
68
  * `UrlHandlingStrategy`
69
+ * @publicApi
69
70
  */
70
71
  export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], urlHandlingStrategy?: UrlHandlingStrategy): Router;
71
72
  /**
@@ -92,7 +93,7 @@ export declare function setupTestingRouter(urlSerializer: UrlSerializer, context
92
93
  * });
93
94
  * ```
94
95
  *
95
- *
96
+ * @publicApi
96
97
  */
97
98
  export declare class RouterTestingModule {
98
99
  static withRoutes(routes: Routes, config?: ExtraOptions): ModuleWithProviders<RouterTestingModule>;
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"SpyNgModuleFactoryLoader":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":44,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Compiler","line":67,"character":32}]}],"load":[{"__symbolic":"method"}]}},"setupTestingRouter":{"__symbolic":"function"},"RouterTestingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":166,"character":1},"arguments":[{"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":167,"character":12}],"providers":[{"__symbolic":"reference","module":"@angular/router","name":"ɵROUTER_PROVIDERS","line":169,"character":4},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"Location","line":169,"character":32},"useClass":{"__symbolic":"reference","module":"@angular/common/testing","name":"SpyLocation","line":169,"character":52}},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"LocationStrategy","line":170,"character":14},"useClass":{"__symbolic":"reference","module":"@angular/common/testing","name":"MockLocationStrategy","line":170,"character":42}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader","line":171,"character":14},"useClass":{"__symbolic":"reference","name":"SpyNgModuleFactoryLoader"}},{"provide":{"__symbolic":"reference","module":"@angular/router","name":"Router","line":172,"character":15},"useFactory":{"__symbolic":"reference","name":"setupTestingRouter"},"deps":[{"__symbolic":"reference","module":"@angular/router","name":"UrlSerializer","line":175,"character":8},{"__symbolic":"reference","module":"@angular/router","name":"ChildrenOutletContexts","line":175,"character":23},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":175,"character":47},{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader","line":175,"character":57},{"__symbolic":"reference","module":"@angular/core","name":"Compiler","line":67,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":175,"character":90},{"__symbolic":"reference","module":"@angular/router","name":"ROUTES","line":176,"character":8},{"__symbolic":"reference","module":"@angular/router","name":"ROUTER_CONFIGURATION","line":176,"character":16},[{"__symbolic":"reference","module":"@angular/router","name":"UrlHandlingStrategy","line":176,"character":39},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":176,"character":64}}]]},{"provide":{"__symbolic":"reference","module":"@angular/router","name":"PreloadingStrategy","line":179,"character":14},"useExisting":{"__symbolic":"reference","module":"@angular/router","name":"NoPreloading","line":179,"character":47}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/router","name":"provideRoutes","line":179,"character":62},"arguments":[[]]}]}]}],"members":{},"statics":{"withRoutes":{"__symbolic":"function","parameters":["routes","config"],"value":{"ngModule":{"__symbolic":"reference","name":"RouterTestingModule"},"providers":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/router","name":"provideRoutes","line":188,"character":8},"arguments":[{"__symbolic":"reference","name":"routes"}]},{"provide":{"__symbolic":"reference","module":"@angular/router","name":"ROUTER_CONFIGURATION","line":189,"character":18},"useValue":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"config"},"thenExpression":{"__symbolic":"reference","name":"config"},"elseExpression":{}}}]}}}}},"origins":{"SpyNgModuleFactoryLoader":"./src/router_testing_module","setupTestingRouter":"./src/router_testing_module","RouterTestingModule":"./src/router_testing_module"},"importAs":"@angular/router/testing"}
1
+ {"__symbolic":"module","version":4,"metadata":{"SpyNgModuleFactoryLoader":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":44,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Compiler","line":67,"character":32}]}],"load":[{"__symbolic":"method"}]}},"setupTestingRouter":{"__symbolic":"function"},"RouterTestingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":167,"character":1},"arguments":[{"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":168,"character":12}],"providers":[{"__symbolic":"reference","module":"@angular/router","name":"ɵROUTER_PROVIDERS","line":170,"character":4},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"Location","line":170,"character":32},"useClass":{"__symbolic":"reference","module":"@angular/common/testing","name":"SpyLocation","line":170,"character":52}},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"LocationStrategy","line":171,"character":14},"useClass":{"__symbolic":"reference","module":"@angular/common/testing","name":"MockLocationStrategy","line":171,"character":42}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader","line":172,"character":14},"useClass":{"__symbolic":"reference","name":"SpyNgModuleFactoryLoader"}},{"provide":{"__symbolic":"reference","module":"@angular/router","name":"Router","line":173,"character":15},"useFactory":{"__symbolic":"reference","name":"setupTestingRouter"},"deps":[{"__symbolic":"reference","module":"@angular/router","name":"UrlSerializer","line":176,"character":8},{"__symbolic":"reference","module":"@angular/router","name":"ChildrenOutletContexts","line":176,"character":23},{"__symbolic":"reference","module":"@angular/common","name":"Location","line":176,"character":47},{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader","line":176,"character":57},{"__symbolic":"reference","module":"@angular/core","name":"Compiler","line":67,"character":32},{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":176,"character":90},{"__symbolic":"reference","module":"@angular/router","name":"ROUTES","line":177,"character":8},{"__symbolic":"reference","module":"@angular/router","name":"ROUTER_CONFIGURATION","line":177,"character":16},[{"__symbolic":"reference","module":"@angular/router","name":"UrlHandlingStrategy","line":177,"character":39},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":177,"character":64}}]]},{"provide":{"__symbolic":"reference","module":"@angular/router","name":"PreloadingStrategy","line":180,"character":14},"useExisting":{"__symbolic":"reference","module":"@angular/router","name":"NoPreloading","line":180,"character":47}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/router","name":"provideRoutes","line":180,"character":62},"arguments":[[]]}]}]}],"members":{},"statics":{"withRoutes":{"__symbolic":"function","parameters":["routes","config"],"value":{"ngModule":{"__symbolic":"reference","name":"RouterTestingModule"},"providers":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/router","name":"provideRoutes","line":189,"character":8},"arguments":[{"__symbolic":"reference","name":"routes"}]},{"provide":{"__symbolic":"reference","module":"@angular/router","name":"ROUTER_CONFIGURATION","line":190,"character":18},"useValue":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"config"},"thenExpression":{"__symbolic":"reference","name":"config"},"elseExpression":{}}}]}}}}},"origins":{"SpyNgModuleFactoryLoader":"./src/router_testing_module","setupTestingRouter":"./src/router_testing_module","RouterTestingModule":"./src/router_testing_module"},"importAs":"@angular/router/testing"}
@@ -28,7 +28,7 @@ import { UpgradeModule } from '@angular/upgrade/static';
28
28
  * }
29
29
  * ```
30
30
  *
31
- * @experimental
31
+ * @publicApi
32
32
  */
33
33
  export declare const RouterUpgradeInitializer: {
34
34
  provide: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
@@ -44,6 +44,6 @@ export declare const RouterUpgradeInitializer: {
44
44
  * History.pushState does not fire onPopState, so the Angular location
45
45
  * doesn't detect it. The workaround is to attach a location change listener
46
46
  *
47
- * @experimental
47
+ * @publicApi
48
48
  */
49
49
  export declare function setUpLocationSync(ngUpgrade: UpgradeModule): void;