How to use the @angular/router/src/router.Router 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 paulo-coutinho / goci / web-app / ngfactory / src / app / project-task-item / project-task-item.component.ngfactory.js View on Github external
_View_ProjectTaskItemComponent_Host0.prototype.createInternal = function (rootSelector) {
        this._el_0 = import2.selectOrCreateRenderHostElement(this.renderer, 'project-task-item', import2.EMPTY_INLINE_ARRAY, rootSelector, null);
        this._appEl_0 = new import5.AppElement(0, null, this, this._el_0);
        var compView_0 = viewFactory_ProjectTaskItemComponent0(this.viewUtils, this.injector(0), this._appEl_0);
        this._ProjectTaskItemComponent_0_4 = new Wrapper_ProjectTaskItemComponent(this.parentInjector.get(import8.GlobalService), this.parentInjector.get(import9.Router));
        this._appEl_0.initComponent(this._ProjectTaskItemComponent_0_4.context, [], compView_0);
        compView_0.create(this._ProjectTaskItemComponent_0_4.context, this.projectableNodes, null);
        this.init([].concat([this._el_0]), [this._el_0], [], []);
        return this._appEl_0;
    };
    _View_ProjectTaskItemComponent_Host0.prototype.injectorGetInternal = function (token, requestNodeIndex, notFoundResult) {
github paulo-coutinho / goci / web-app / ngfactory / src / app / job-list / job-list.component.ngfactory.js View on Github external
_View_JobListComponent_Host0.prototype.createInternal = function (rootSelector) {
        this._el_0 = import4.selectOrCreateRenderHostElement(this.renderer, 'job-list', import4.EMPTY_INLINE_ARRAY, rootSelector, null);
        this._appEl_0 = new import3.AppElement(0, null, this, this._el_0);
        var compView_0 = viewFactory_JobListComponent0(this.viewUtils, this.injector(0), this._appEl_0);
        this._JobListComponent_0_4 = new Wrapper_JobListComponent(this.parentInjector.get(import8.GlobalService), this.parentInjector.get(import9.Router));
        this._appEl_0.initComponent(this._JobListComponent_0_4.context, [], compView_0);
        compView_0.create(this._JobListComponent_0_4.context, this.projectableNodes, null);
        this.init([].concat([this._el_0]), [this._el_0], [], []);
        return this._appEl_0;
    };
    _View_JobListComponent_Host0.prototype.injectorGetInternal = function (token, requestNodeIndex, notFoundResult) {
github paulo-coutinho / goci / web-app / ngfactory / src / app / project-list / project-list.component.ngfactory.js View on Github external
_View_ProjectListComponent_Host0.prototype.createInternal = function (rootSelector) {
        this._el_0 = import4.selectOrCreateRenderHostElement(this.renderer, 'project-list', import4.EMPTY_INLINE_ARRAY, rootSelector, null);
        this._appEl_0 = new import3.AppElement(0, null, this, this._el_0);
        var compView_0 = viewFactory_ProjectListComponent0(this.viewUtils, this.injector(0), this._appEl_0);
        this._ProjectListComponent_0_4 = new Wrapper_ProjectListComponent(this.parentInjector.get(import8.GlobalService), this.parentInjector.get(import9.ProjectService), this.parentInjector.get(import10.Router));
        this._appEl_0.initComponent(this._ProjectListComponent_0_4.context, [], compView_0);
        compView_0.create(this._ProjectListComponent_0_4.context, this.projectableNodes, null);
        this.init([].concat([this._el_0]), [this._el_0], [], []);
        return this._appEl_0;
    };
    _View_ProjectListComponent_Host0.prototype.injectorGetInternal = function (token, requestNodeIndex, notFoundResult) {
github brechtbilliet / reactive_apps_workshop / src / app / index.ngfactory.ts View on Github external
createInternal():import1.AppModule {
    this._CommonModule_0 = new import2.CommonModule();
    this._ApplicationModule_1 = new import3.ApplicationModule();
    this._BrowserModule_2 = new import4.BrowserModule(this.parent.get(import4.BrowserModule,(null as any)));
    this._ROUTER_FORROOT_GUARD_3 = import5.provideForRootGuard(this.parent.get(import64.Router,(null as any)));
    this._RouterModule_4 = new import5.RouterModule(this._ROUTER_FORROOT_GUARD_3);
    this._InternalFormsSharedModule_5 = new import6.InternalFormsSharedModule();
    this._FormsModule_6 = new import7.FormsModule();
    this._ReactiveFormsModule_7 = new import7.ReactiveFormsModule();
    this._HttpModule_8 = new import8.HttpModule();
    this._CommonLogicModule_9 = new import9.CommonLogicModule();
    this._AboutModule_10 = new import10.AboutModule();
    this._AuthenticationModule_11 = new import11.AuthenticationModule();
    this._StockModule_12 = new import12.StockModule();
    this._AppModule_13 = new import1.AppModule();
    this._ErrorHandler_16 = import4.errorHandler();
    this._ApplicationInitStatus_17 = new import14.ApplicationInitStatus(this.parent.get(import14.APP_INITIALIZER,(null as any)));
    this._Testability_18 = new import15.Testability(this.parent.get(import53.NgZone));
    this._ApplicationRef__19 = new import16.ApplicationRef_(this.parent.get(import53.NgZone),this.parent.get(import65.Console),this,this._ErrorHandler_16,this,this._ApplicationInitStatus_17,this.parent.get(import15.TestabilityRegistry,(null as any)),this._Testability_18);
    return this._AppModule_13;
  }
github ag-grid / ag-grid-angular-example / aot / app / app.module.ngfactory.ts View on Github external
if ((token === import20.DomSanitizer)) { return this._DomSanitizer_28; }
    if ((token === import77.Sanitizer)) { return this._Sanitizer_29; }
    if ((token === import21.ViewUtils)) { return this._ViewUtils_30; }
    if ((token === import78.IterableDiffers)) { return this._IterableDiffers_31; }
    if ((token === import79.KeyValueDiffers)) { return this._KeyValueDiffers_32; }
    if ((token === import18.SharedStylesHost)) { return this._SharedStylesHost_33; }
    if ((token === import22.Title)) { return this._Title_34; }
    if ((token === import23.RadioControlRegistry)) { return this._RadioControlRegistry_35; }
    if ((token === import7.ROUTER_CONFIGURATION)) { return this._ROUTER_CONFIGURATION_36; }
    if ((token === import60.LocationStrategy)) { return this._LocationStrategy_37; }
    if ((token === import24.Location)) { return this._Location_38; }
    if ((token === import25.UrlSerializer)) { return this._UrlSerializer_39; }
    if ((token === import26.RouterOutletMap)) { return this._RouterOutletMap_40; }
    if ((token === import80.NgModuleFactoryLoader)) { return this._NgModuleFactoryLoader_41; }
    if ((token === import81.ROUTES)) { return this._ROUTES_42; }
    if ((token === import70.Router)) { return this._Router_43; }
    if ((token === import82.ActivatedRoute)) { return this._ActivatedRoute_44; }
    if ((token === import28.NoPreloading)) { return this._NoPreloading_45; }
    if ((token === import28.PreloadingStrategy)) { return this._PreloadingStrategy_46; }
    if ((token === import28.RouterPreloader)) { return this._RouterPreloader_47; }
    if ((token === import28.PreloadAllModules)) { return this._PreloadAllModules_48; }
    if ((token === import54.APP_BOOTSTRAP_LISTENER)) { return this._APP_BOOTSTRAP_LISTENER_49; }
    if ((token === import29.Ng2ComponentFactory)) { return this._Ng2ComponentFactory_50; }
    if ((token === import83.BaseComponentFactory)) { return this._BaseComponentFactory_51; }
    if ((token === import30.Ng2FrameworkFactory)) { return this._Ng2FrameworkFactory_52; }
    return notFoundResult;
  }
  destroyInternal():void {
github ag-grid / ag-grid-angular-example / aot / aot / app / app.module.ngfactory.js View on Github external
AppModuleInjector.prototype.createInternal = function () {
        this._CommonModule_0 = new import2.CommonModule();
        this._ApplicationModule_1 = new import3.ApplicationModule();
        this._BrowserModule_2 = new import4.BrowserModule(this.parent.get(import4.BrowserModule, null));
        this._InternalFormsSharedModule_3 = new import5.InternalFormsSharedModule();
        this._FormsModule_4 = new import6.FormsModule();
        this._ROUTER_FORROOT_GUARD_5 = import7.provideForRootGuard(this.parent.get(import70.Router, null));
        this._RouterModule_6 = new import7.RouterModule(this._ROUTER_FORROOT_GUARD_5);
        this._AgGridModule_7 = new import8.AgGridModule();
        this._RatioModule_8 = new import9.RatioModule();
        this._ClickableModule_9 = new import10.ClickableModule();
        this._AppModule_10 = new import1.AppModule();
        this._ErrorHandler_13 = import4.errorHandler();
        this._ApplicationInitStatus_14 = new import12.ApplicationInitStatus(this.parent.get(import12.APP_INITIALIZER, null));
        this._Testability_15 = new import13.Testability(this.parent.get(import57.NgZone));
        this._ApplicationRef__16 = new import14.ApplicationRef_(this.parent.get(import57.NgZone), this.parent.get(import71.Console), this, this._ErrorHandler_13, this, this._ApplicationInitStatus_14, this.parent.get(import13.TestabilityRegistry, null), this._Testability_15);
        this._NoPreloading_45 = new import28.NoPreloading();
        this._PreloadingStrategy_46 = this._NoPreloading_45;
        this._RouterPreloader_47 = new import28.RouterPreloader(this._Router_43, this._NgModuleFactoryLoader_41, this._Compiler_18, this, this._PreloadingStrategy_46);
        return this._AppModule_10;
    };
    AppModuleInjector.prototype.getInternal = function (token, notFoundResult) {