How to use the @angular/router.provideRoutes function in @angular/router

To help you get started, we’ve selected a few @angular/router examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bfwg / angular-spring-starter / frontend / node_modules / @angular / router / @angular / router / testing.es5.js View on Github external
RouterTestingModule.withRoutes = function (routes) {
        return { ngModule: RouterTestingModule, providers: [provideRoutes(routes)] };
    };
    return RouterTestingModule;
github johandb / svg-drawing-tool / node_modules / @angular / router / fesm2015 / testing.js View on Github external
static withRoutes(routes, config) {
        return {
            ngModule: RouterTestingModule,
            providers: [
                provideRoutes(routes),
                { provide: ROUTER_CONFIGURATION, useValue: config ? config : {} },
            ]
        };
    }
}
github johandb / svg-drawing-tool / node_modules / @angular / router / esm5 / testing / src / router_testing_module.js View on Github external
RouterTestingModule.withRoutes = function (routes, config) {
        return {
            ngModule: RouterTestingModule_1,
            providers: [
                provideRoutes(routes),
                { provide: ROUTER_CONFIGURATION, useValue: config ? config : {} },
            ]
        };
    };
    var RouterTestingModule_1;
github Promact / md2 / vendor / @angular / router / testing / router_testing_module.js View on Github external
RouterTestingModule.withRoutes = function (routes) {
        return { ngModule: RouterTestingModule, providers: [provideRoutes(routes)] };
    };
    RouterTestingModule.decorators = [
github johandb / svg-drawing-tool / node_modules / @angular / router / fesm5 / testing.js View on Github external
RouterTestingModule.withRoutes = function (routes, config) {
        return {
            ngModule: RouterTestingModule_1,
            providers: [
                provideRoutes(routes),
                { provide: ROUTER_CONFIGURATION, useValue: config ? config : {} },
            ]
        };
    };
    var RouterTestingModule_1;
github bfwg / angular-spring-starter / frontend / node_modules / @angular / router / @angular / router / testing.js View on Github external
static withRoutes(routes) {
        return { ngModule: RouterTestingModule, providers: [provideRoutes(routes)] };
    }
}
github Promact / md2 / libs / @angular / router / @angular / router / testing.es5.js View on Github external
RouterTestingModule.withRoutes = function (routes) {
        return { ngModule: RouterTestingModule, providers: [provideRoutes(routes)] };
    };
    return RouterTestingModule;
github johandb / svg-drawing-tool / node_modules / @angular / router / esm2015 / testing / src / router_testing_module.js View on Github external
static withRoutes(routes, config) {
        return {
            ngModule: RouterTestingModule,
            providers: [
                provideRoutes(routes),
                { provide: ROUTER_CONFIGURATION, useValue: config ? config : {} },
            ]
        };
    }
}
github JuanDelgadillo / angular2-pokedex / vendors / @angular / router / testing / router_testing_module.js View on Github external
RouterTestingModule.withRoutes = function (routes) {
        return { ngModule: RouterTestingModule, providers: [provideRoutes(routes)] };
    };
    RouterTestingModule.decorators = [
github antonybudianto / angular-webpack-starter / src / app / app.component.spec.ts View on Github external
beforeEach(() => {
        TestBed.configureTestingModule({
            declarations: [
                TestRouterComponent,
                AppComponent
            ],
            imports: [ RouterTestingModule, RouterModule, CoreModule ],
            providers: [ provideRoutes(config) ]
        });
    });