Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular/router

Package Overview
Dependencies
Maintainers
1
Versions
866
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/router - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0-beta.0

src/router_preloader.d.ts

4

bundles/router-testing.umd.js
/**
* @license Angular v3.0.1
* @license Angular v3.1.0-beta.0
* (c) 2010-2016 Google, Inc. https://angular.io/

@@ -122,3 +122,3 @@ * License: MIT

},
_angular_router.provideRoutes([])
{ provide: _angular_router.PreloadingStrategy, useExisting: _angular_router.NoPreloading }, _angular_router.provideRoutes([])
]

@@ -125,0 +125,0 @@ },] },

{
"name": "@angular/router",
"version": "3.0.1",
"version": "3.1.0-beta.0",
"description": "Angular - the routing library",

@@ -24,7 +24,7 @@ "main": "bundles/router.umd.js",

"peerDependencies": {
"@angular/core": "2.0.1",
"@angular/common": "2.0.1",
"@angular/platform-browser": "2.0.1",
"@angular/core": "2.1.0-beta.0",
"@angular/common": "2.1.0-beta.0",
"@angular/platform-browser": "2.1.0-beta.0",
"rxjs": "5.0.0-beta.12"
}
}

@@ -16,2 +16,3 @@ /**

export { RouterOutletMap } from './router_outlet_map';
export { NoPreloading, PreloadAllModules, PreloadingStrategy } from './router_preloader';
export { ActivatedRoute, ActivatedRouteSnapshot, RouterState, RouterStateSnapshot } from './router_state';

@@ -18,0 +19,0 @@ export { PRIMARY_OUTLET, Params } from './shared';

@@ -14,2 +14,3 @@ /**

export { RouterOutletMap } from './router_outlet_map';
export { NoPreloading, PreloadAllModules, PreloadingStrategy } from './router_preloader';
export { ActivatedRoute, ActivatedRouteSnapshot, RouterState, RouterStateSnapshot } from './router_state';

@@ -16,0 +17,0 @@ export { PRIMARY_OUTLET } from './shared';

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./config","export":["Data","LoadChildren","LoadChildrenCallback","ResolveData","Route","Routes"]},{"from":"./directives/router_link","export":["RouterLink","RouterLinkWithHref"]},{"from":"./directives/router_link_active","export":["RouterLinkActive"]},{"from":"./directives/router_outlet","export":["RouterOutlet"]},{"from":"./interfaces","export":["CanActivate","CanActivateChild","CanDeactivate","CanLoad","Resolve"]},{"from":"./router","export":["Event","NavigationCancel","NavigationEnd","NavigationError","NavigationExtras","NavigationStart","Router","RoutesRecognized"]},{"from":"./router_module","export":["ExtraOptions","RouterModule","provideRoutes"]},{"from":"./router_outlet_map","export":["RouterOutletMap"]},{"from":"./router_state","export":["ActivatedRoute","ActivatedRouteSnapshot","RouterState","RouterStateSnapshot"]},{"from":"./shared","export":["PRIMARY_OUTLET","Params"]},{"from":"./url_tree","export":["DefaultUrlSerializer","UrlSegment","UrlSerializer","UrlTree"]},{"from":"./private_export"}]}
{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./config","export":["Data","LoadChildren","LoadChildrenCallback","ResolveData","Route","Routes"]},{"from":"./directives/router_link","export":["RouterLink","RouterLinkWithHref"]},{"from":"./directives/router_link_active","export":["RouterLinkActive"]},{"from":"./directives/router_outlet","export":["RouterOutlet"]},{"from":"./interfaces","export":["CanActivate","CanActivateChild","CanDeactivate","CanLoad","Resolve"]},{"from":"./router","export":["Event","NavigationCancel","NavigationEnd","NavigationError","NavigationExtras","NavigationStart","Router","RoutesRecognized"]},{"from":"./router_module","export":["ExtraOptions","RouterModule","provideRoutes"]},{"from":"./router_outlet_map","export":["RouterOutletMap"]},{"from":"./router_preloader","export":["NoPreloading","PreloadAllModules","PreloadingStrategy"]},{"from":"./router_state","export":["ActivatedRoute","ActivatedRouteSnapshot","RouterState","RouterStateSnapshot"]},{"from":"./shared","export":["PRIMARY_OUTLET","Params"]},{"from":"./url_tree","export":["DefaultUrlSerializer","UrlSegment","UrlSerializer","UrlTree"]},{"from":"./private_export"}]}

@@ -13,2 +13,3 @@ /**

import { RouterOutletMap } from './router_outlet_map';
import { RouterPreloader } from './router_preloader';
import { ActivatedRoute } from './router_state';

@@ -137,11 +138,15 @@ import { UrlSerializer } from './url_tree';

errorHandler?: ErrorHandler;
/**
* Configures a preloading strategy. See {@link PreloadAllModules}.
*/
preloadingStrategy?: any;
}
export declare function setupRouter(ref: ApplicationRef, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector, loader: NgModuleFactoryLoader, compiler: Compiler, config: Route[][], opts?: ExtraOptions): Router;
export declare function rootRoute(router: Router): ActivatedRoute;
export declare function initialRouterNavigation(router: Router, opts: ExtraOptions): () => void;
export declare function initialRouterNavigation(router: Router, ref: ApplicationRef, preloader: RouterPreloader, opts: ExtraOptions): () => void;
export declare function provideRouterInitializer(): {
provide: OpaqueToken;
multi: boolean;
useFactory: (router: Router, opts: ExtraOptions) => () => void;
deps: (OpaqueToken | typeof Router)[];
useFactory: (router: Router, ref: ApplicationRef, preloader: RouterPreloader, opts: ExtraOptions) => () => void;
deps: (OpaqueToken | typeof Router | typeof RouterPreloader | typeof ApplicationRef)[];
};

@@ -16,2 +16,3 @@ /**

import { RouterOutletMap } from './router_outlet_map';
import { NoPreloading, PreloadAllModules, PreloadingStrategy, RouterPreloader } from './router_preloader';
import { ActivatedRoute } from './router_state';

@@ -52,4 +53,4 @@ import { DefaultUrlSerializer, UrlSerializer } from './url_tree';

RouterOutletMap, { provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },
{ provide: NgModuleFactoryLoader, useClass: SystemJsNgModuleLoader },
{ provide: ROUTER_CONFIGURATION, useValue: { enableTracing: false } }
{ provide: NgModuleFactoryLoader, useClass: SystemJsNgModuleLoader }, RouterPreloader, NoPreloading,
PreloadAllModules, { provide: ROUTER_CONFIGURATION, useValue: { enableTracing: false } }
];

@@ -138,2 +139,7 @@ /**

},
{
provide: PreloadingStrategy,
useExisting: config && config.preloadingStrategy ? config.preloadingStrategy :
NoPreloading
},
provideRouterInitializer()

@@ -192,7 +198,3 @@ ]

if (opts === void 0) { opts = {}; }
if (ref.componentTypes.length == 0) {
throw new Error('Bootstrap at least one component before injecting Router.');
}
var componentType = ref.componentTypes[0];
var r = new Router(componentType, urlSerializer, outletMap, location, injector, loader, compiler, flatten(config));
var r = new Router(null, urlSerializer, outletMap, location, injector, loader, compiler, flatten(config));
if (opts.errorHandler) {

@@ -214,4 +216,6 @@ r.errorHandler = opts.errorHandler;

}
export function initialRouterNavigation(router, opts) {
export function initialRouterNavigation(router, ref, preloader, opts) {
return function () {
router.resetRootComponentType(ref.componentTypes[0]);
preloader.setUpPreloading();
if (opts.initialNavigation === false) {

@@ -230,5 +234,5 @@ router.setUpLocationChangeListener();

useFactory: initialRouterNavigation,
deps: [Router, ROUTER_CONFIGURATION]
deps: [Router, ApplicationRef, RouterPreloader, ROUTER_CONFIGURATION]
};
}
//# sourceMappingURL=router_module.js.map

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":1,"metadata":{"ROUTER_CONFIGURATION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["ROUTER_CONFIGURATION"]},"ROUTER_FORROOT_GUARD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["ROUTER_FORROOT_GUARD"]},"ROUTER_PROVIDERS":[{"__symbolic":"reference","module":"@angular/common","name":"Location"},{"provide":{"__symbolic":"reference","module":"./url_tree","name":"UrlSerializer"},"useClass":{"__symbolic":"reference","module":"./url_tree","name":"DefaultUrlSerializer"}},{"provide":{"__symbolic":"reference","module":"./router","name":"Router"},"useFactory":{"__symbolic":"reference","name":"setupRouter"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef"},{"__symbolic":"reference","module":"./url_tree","name":"UrlSerializer"},{"__symbolic":"reference","module":"./router_outlet_map","name":"RouterOutletMap"},{"__symbolic":"reference","module":"@angular/common","name":"Location"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader"},{"__symbolic":"reference","module":"@angular/core","name":"Compiler"},{"__symbolic":"reference","module":"./router_config_loader","name":"ROUTES"},{"__symbolic":"reference","name":"ROUTER_CONFIGURATION"}]},{"__symbolic":"reference","module":"./router_outlet_map","name":"RouterOutletMap"},{"provide":{"__symbolic":"reference","module":"./router_state","name":"ActivatedRoute"},"useFactory":{"__symbolic":"reference","name":"rootRoute"},"deps":[{"__symbolic":"reference","module":"./router","name":"Router"}]},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader"},"useClass":{"__symbolic":"reference","module":"@angular/core","name":"SystemJsNgModuleLoader"}},{"provide":{"__symbolic":"reference","name":"ROUTER_CONFIGURATION"},"useValue":{"enableTracing":false}}],"RouterModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./directives/router_outlet","name":"RouterOutlet"},{"__symbolic":"reference","module":"./directives/router_link","name":"RouterLink"},{"__symbolic":"reference","module":"./directives/router_link","name":"RouterLinkWithHref"},{"__symbolic":"reference","module":"./directives/router_link_active","name":"RouterLinkActive"}],"exports":[{"__symbolic":"reference","module":"./directives/router_outlet","name":"RouterOutlet"},{"__symbolic":"reference","module":"./directives/router_link","name":"RouterLink"},{"__symbolic":"reference","module":"./directives/router_link","name":"RouterLinkWithHref"},{"__symbolic":"reference","module":"./directives/router_link_active","name":"RouterLinkActive"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"ROUTER_FORROOT_GUARD"}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}]},"statics":{"forRoot":{"__symbolic":"function","parameters":["routes","config"],"value":{"ngModule":{"__symbolic":"reference","name":"RouterModule"},"providers":[{"__symbolic":"reference","name":"ROUTER_PROVIDERS"},{"__symbolic":"call","expression":{"__symbolic":"reference","name":"provideRoutes"},"arguments":[{"__symbolic":"reference","name":"routes"}]},{"provide":{"__symbolic":"reference","name":"ROUTER_FORROOT_GUARD"},"useFactory":{"__symbolic":"reference","name":"provideForRootGuard"},"deps":[[{"__symbolic":"reference","module":"./router","name":"Router"},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf"}}]]},{"provide":{"__symbolic":"reference","name":"ROUTER_CONFIGURATION"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"config"},"thenExpression":{"__symbolic":"reference","name":"config"},"elseExpression":{}}},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"LocationStrategy"},"useFactory":{"__symbolic":"reference","name":"provideLocationStrategy"},"deps":[{"__symbolic":"reference","module":"@angular/common","name":"PlatformLocation"},[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"APP_BASE_HREF"}]},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],{"__symbolic":"reference","name":"ROUTER_CONFIGURATION"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","name":"provideRouterInitializer"}}]}},"forChild":{"__symbolic":"function","parameters":["routes"],"value":{"ngModule":{"__symbolic":"reference","name":"RouterModule"},"providers":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"provideRoutes"},"arguments":[{"__symbolic":"reference","name":"routes"}]}]}}}},"provideLocationStrategy":{"__symbolic":"function","parameters":["platformLocationStrategy","baseHref","options"],"value":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"useHash"},"thenExpression":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/common","name":"HashLocationStrategy"},"arguments":[{"__symbolic":"reference","name":"platformLocationStrategy"},{"__symbolic":"reference","name":"baseHref"}]},"elseExpression":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/common","name":"PathLocationStrategy"},"arguments":[{"__symbolic":"reference","name":"platformLocationStrategy"},{"__symbolic":"reference","name":"baseHref"}]}},"defaults":[null,null,{}]},"provideRoutes":{"__symbolic":"function","parameters":["routes"],"value":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"ANALYZE_FOR_ENTRY_COMPONENTS"},"multi":true,"useValue":{"__symbolic":"reference","name":"routes"}},{"provide":{"__symbolic":"reference","module":"./router_config_loader","name":"ROUTES"},"multi":true,"useValue":{"__symbolic":"reference","name":"routes"}}]},"rootRoute":{"__symbolic":"function","parameters":["router"],"value":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"router"},"member":"routerState"},"member":"root"}},"initialRouterNavigation":{"__symbolic":"function","parameters":["router","opts"],"value":{"__symbolic":"error","message":"Function call not supported","line":257,"character":9}},"provideRouterInitializer":{"__symbolic":"function","parameters":[],"value":{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_BOOTSTRAP_LISTENER"},"multi":true,"useFactory":{"__symbolic":"reference","name":"initialRouterNavigation"},"deps":[{"__symbolic":"reference","module":"./router","name":"Router"},{"__symbolic":"reference","name":"ROUTER_CONFIGURATION"}]}}}}
{"__symbolic":"module","version":1,"metadata":{"ROUTER_CONFIGURATION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["ROUTER_CONFIGURATION"]},"ROUTER_FORROOT_GUARD":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["ROUTER_FORROOT_GUARD"]},"ROUTER_PROVIDERS":[{"__symbolic":"reference","module":"@angular/common","name":"Location"},{"provide":{"__symbolic":"reference","module":"./url_tree","name":"UrlSerializer"},"useClass":{"__symbolic":"reference","module":"./url_tree","name":"DefaultUrlSerializer"}},{"provide":{"__symbolic":"reference","module":"./router","name":"Router"},"useFactory":{"__symbolic":"reference","name":"setupRouter"},"deps":[{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef"},{"__symbolic":"reference","module":"./url_tree","name":"UrlSerializer"},{"__symbolic":"reference","module":"./router_outlet_map","name":"RouterOutletMap"},{"__symbolic":"reference","module":"@angular/common","name":"Location"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader"},{"__symbolic":"reference","module":"@angular/core","name":"Compiler"},{"__symbolic":"reference","module":"./router_config_loader","name":"ROUTES"},{"__symbolic":"reference","name":"ROUTER_CONFIGURATION"}]},{"__symbolic":"reference","module":"./router_outlet_map","name":"RouterOutletMap"},{"provide":{"__symbolic":"reference","module":"./router_state","name":"ActivatedRoute"},"useFactory":{"__symbolic":"reference","name":"rootRoute"},"deps":[{"__symbolic":"reference","module":"./router","name":"Router"}]},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader"},"useClass":{"__symbolic":"reference","module":"@angular/core","name":"SystemJsNgModuleLoader"}},{"__symbolic":"reference","module":"./router_preloader","name":"RouterPreloader"},{"__symbolic":"reference","module":"./router_preloader","name":"NoPreloading"},{"__symbolic":"reference","module":"./router_preloader","name":"PreloadAllModules"},{"provide":{"__symbolic":"reference","name":"ROUTER_CONFIGURATION"},"useValue":{"enableTracing":false}}],"RouterModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./directives/router_outlet","name":"RouterOutlet"},{"__symbolic":"reference","module":"./directives/router_link","name":"RouterLink"},{"__symbolic":"reference","module":"./directives/router_link","name":"RouterLinkWithHref"},{"__symbolic":"reference","module":"./directives/router_link_active","name":"RouterLinkActive"}],"exports":[{"__symbolic":"reference","module":"./directives/router_outlet","name":"RouterOutlet"},{"__symbolic":"reference","module":"./directives/router_link","name":"RouterLink"},{"__symbolic":"reference","module":"./directives/router_link","name":"RouterLinkWithHref"},{"__symbolic":"reference","module":"./directives/router_link_active","name":"RouterLinkActive"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"ROUTER_FORROOT_GUARD"}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}]},"statics":{"forRoot":{"__symbolic":"function","parameters":["routes","config"],"value":{"ngModule":{"__symbolic":"reference","name":"RouterModule"},"providers":[{"__symbolic":"reference","name":"ROUTER_PROVIDERS"},{"__symbolic":"call","expression":{"__symbolic":"reference","name":"provideRoutes"},"arguments":[{"__symbolic":"reference","name":"routes"}]},{"provide":{"__symbolic":"reference","name":"ROUTER_FORROOT_GUARD"},"useFactory":{"__symbolic":"reference","name":"provideForRootGuard"},"deps":[[{"__symbolic":"reference","module":"./router","name":"Router"},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf"}}]]},{"provide":{"__symbolic":"reference","name":"ROUTER_CONFIGURATION"},"useValue":{"__symbolic":"if","condition":{"__symbolic":"reference","name":"config"},"thenExpression":{"__symbolic":"reference","name":"config"},"elseExpression":{}}},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"LocationStrategy"},"useFactory":{"__symbolic":"reference","name":"provideLocationStrategy"},"deps":[{"__symbolic":"reference","module":"@angular/common","name":"PlatformLocation"},[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"APP_BASE_HREF"}]},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}],{"__symbolic":"reference","name":"ROUTER_CONFIGURATION"}]},{"provide":{"__symbolic":"reference","module":"./router_preloader","name":"PreloadingStrategy"},"useExisting":{"__symbolic":"if","condition":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"reference","name":"config"},"right":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"preloadingStrategy"}},"thenExpression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"preloadingStrategy"},"elseExpression":{"__symbolic":"reference","module":"./router_preloader","name":"NoPreloading"}}},{"__symbolic":"call","expression":{"__symbolic":"reference","name":"provideRouterInitializer"}}]}},"forChild":{"__symbolic":"function","parameters":["routes"],"value":{"ngModule":{"__symbolic":"reference","name":"RouterModule"},"providers":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"provideRoutes"},"arguments":[{"__symbolic":"reference","name":"routes"}]}]}}}},"provideLocationStrategy":{"__symbolic":"function","parameters":["platformLocationStrategy","baseHref","options"],"value":{"__symbolic":"if","condition":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"options"},"member":"useHash"},"thenExpression":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/common","name":"HashLocationStrategy"},"arguments":[{"__symbolic":"reference","name":"platformLocationStrategy"},{"__symbolic":"reference","name":"baseHref"}]},"elseExpression":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/common","name":"PathLocationStrategy"},"arguments":[{"__symbolic":"reference","name":"platformLocationStrategy"},{"__symbolic":"reference","name":"baseHref"}]}},"defaults":[null,null,{}]},"provideRoutes":{"__symbolic":"function","parameters":["routes"],"value":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"ANALYZE_FOR_ENTRY_COMPONENTS"},"multi":true,"useValue":{"__symbolic":"reference","name":"routes"}},{"provide":{"__symbolic":"reference","module":"./router_config_loader","name":"ROUTES"},"multi":true,"useValue":{"__symbolic":"reference","name":"routes"}}]},"rootRoute":{"__symbolic":"function","parameters":["router"],"value":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"router"},"member":"routerState"},"member":"root"}},"initialRouterNavigation":{"__symbolic":"function","parameters":["router","ref","preloader","opts"],"value":{"__symbolic":"error","message":"Function call not supported","line":264,"character":9}},"provideRouterInitializer":{"__symbolic":"function","parameters":[],"value":{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_BOOTSTRAP_LISTENER"},"multi":true,"useFactory":{"__symbolic":"reference","name":"initialRouterNavigation"},"deps":[{"__symbolic":"reference","module":"./router","name":"Router"},{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef"},{"__symbolic":"reference","module":"./router_preloader","name":"RouterPreloader"},{"__symbolic":"reference","name":"ROUTER_CONFIGURATION"}]}}}}

@@ -186,2 +186,12 @@ /**

/**
* @internal
* TODO: this should be removed once the constructor of the router made internal
*/
Router.prototype.resetRootComponentType = function (rootComponentType) {
this.rootComponentType = rootComponentType;
// TODO: vsavkin router 4.0 should make the root component set to null
// this will simplify the lifecycle of the router.
this.currentRouterState.root.component = this.rootComponentType;
};
/**
* Sets up the location change listener and performs the initial navigation.

@@ -188,0 +198,0 @@ */

@@ -11,3 +11,3 @@ /**

import { Compiler, Injectable, Injector, NgModule, NgModuleFactoryLoader } from '@angular/core';
import { Router, RouterModule, RouterOutletMap, UrlSerializer, provideRoutes } from '@angular/router';
import { NoPreloading, PreloadingStrategy, Router, RouterModule, RouterOutletMap, UrlSerializer, provideRoutes } from '@angular/router';
import { ROUTER_PROVIDERS, ROUTES, flatten } from './private_import_router';

@@ -120,3 +120,3 @@ /**

},
provideRoutes([])
{ provide: PreloadingStrategy, useExisting: NoPreloading }, provideRoutes([])
]

@@ -123,0 +123,0 @@ },] },

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":1,"metadata":{"SpyNgModuleFactoryLoader":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Compiler"}]}],"load":[{"__symbolic":"method"}]}},"setupTestingRouter":{"__symbolic":"function","parameters":["urlSerializer","outletMap","location","loader","compiler","injector","routes"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/router","name":"Router"},"arguments":[null,{"__symbolic":"reference","name":"urlSerializer"},{"__symbolic":"reference","name":"outletMap"},{"__symbolic":"reference","name":"location"},{"__symbolic":"reference","name":"injector"},{"__symbolic":"reference","name":"loader"},{"__symbolic":"reference","name":"compiler"},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./private_import_router","name":"flatten"},"arguments":[{"__symbolic":"reference","name":"routes"}]}]}},"RouterTestingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule"}],"providers":[{"__symbolic":"reference","module":"./private_import_router","name":"ROUTER_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"Location"},"useClass":{"__symbolic":"reference","module":"@angular/common/testing","name":"SpyLocation"}},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"LocationStrategy"},"useClass":{"__symbolic":"reference","module":"@angular/common/testing","name":"MockLocationStrategy"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader"},"useClass":{"__symbolic":"reference","name":"SpyNgModuleFactoryLoader"}},{"provide":{"__symbolic":"reference","module":"@angular/router","name":"Router"},"useFactory":{"__symbolic":"reference","name":"setupTestingRouter"},"deps":[{"__symbolic":"reference","module":"@angular/router","name":"UrlSerializer"},{"__symbolic":"reference","module":"@angular/router","name":"RouterOutletMap"},{"__symbolic":"reference","module":"@angular/common","name":"Location"},{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader"},{"__symbolic":"reference","module":"@angular/core","name":"Compiler"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./private_import_router","name":"ROUTES"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/router","name":"provideRoutes"},"arguments":[[]]}]}]}],"statics":{"withRoutes":{"__symbolic":"function","parameters":["routes"],"value":{"ngModule":{"__symbolic":"reference","name":"RouterTestingModule"},"providers":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/router","name":"provideRoutes"},"arguments":[{"__symbolic":"reference","name":"routes"}]}]}}}}}}
{"__symbolic":"module","version":1,"metadata":{"SpyNgModuleFactoryLoader":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Compiler"}]}],"load":[{"__symbolic":"method"}]}},"setupTestingRouter":{"__symbolic":"function","parameters":["urlSerializer","outletMap","location","loader","compiler","injector","routes"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/router","name":"Router"},"arguments":[null,{"__symbolic":"reference","name":"urlSerializer"},{"__symbolic":"reference","name":"outletMap"},{"__symbolic":"reference","name":"location"},{"__symbolic":"reference","name":"injector"},{"__symbolic":"reference","name":"loader"},{"__symbolic":"reference","name":"compiler"},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"./private_import_router","name":"flatten"},"arguments":[{"__symbolic":"reference","name":"routes"}]}]}},"RouterTestingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule"}],"providers":[{"__symbolic":"reference","module":"./private_import_router","name":"ROUTER_PROVIDERS"},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"Location"},"useClass":{"__symbolic":"reference","module":"@angular/common/testing","name":"SpyLocation"}},{"provide":{"__symbolic":"reference","module":"@angular/common","name":"LocationStrategy"},"useClass":{"__symbolic":"reference","module":"@angular/common/testing","name":"MockLocationStrategy"}},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader"},"useClass":{"__symbolic":"reference","name":"SpyNgModuleFactoryLoader"}},{"provide":{"__symbolic":"reference","module":"@angular/router","name":"Router"},"useFactory":{"__symbolic":"reference","name":"setupTestingRouter"},"deps":[{"__symbolic":"reference","module":"@angular/router","name":"UrlSerializer"},{"__symbolic":"reference","module":"@angular/router","name":"RouterOutletMap"},{"__symbolic":"reference","module":"@angular/common","name":"Location"},{"__symbolic":"reference","module":"@angular/core","name":"NgModuleFactoryLoader"},{"__symbolic":"reference","module":"@angular/core","name":"Compiler"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./private_import_router","name":"ROUTES"}]},{"provide":{"__symbolic":"reference","module":"@angular/router","name":"PreloadingStrategy"},"useExisting":{"__symbolic":"reference","module":"@angular/router","name":"NoPreloading"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/router","name":"provideRoutes"},"arguments":[[]]}]}]}],"statics":{"withRoutes":{"__symbolic":"function","parameters":["routes"],"value":{"ngModule":{"__symbolic":"reference","name":"RouterTestingModule"},"providers":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/router","name":"provideRoutes"},"arguments":[{"__symbolic":"reference","name":"routes"}]}]}}}}}}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc