@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
38 lines • 1.91 kB
TypeScript
import { ModuleWithProviders } from '@angular/core';
import { ExtraOptions, Routes } from '@angular/router';
import { Route, ViewContextRootRoute } from './router.model';
import { RouterService } from './router.service';
import * as i0 from "@angular/core";
import * as i1 from "@angular/router";
import * as i2 from "../header/header.module";
import * as i3 from "../common/common.module";
import * as i4 from "./context-route.component";
import * as i5 from "./empty.component";
export declare const extraRoutes: Route[];
export declare const viewContextRoutes: ViewContextRootRoute[];
/**
* A C8Y router implementation. It implements some default routes needed
* as well as context routes. Context routes are useful, if you want to
* use context data on a certain view (e.g. a device), then this routes
* automatically resolve the associated managed object.
*
* You can use this in combination of the Angular default RouterModule
* or use only this module. Context routes can only be added via the
* HOOK_ROUTES hook.
*/
export declare class RouterModule {
private routerService;
/**
* Same interface as @angular/router module.
* Sets `initialNavigation` always to `disabled` and `useHash` always to `true`.
* @param routes The configured routes.
* @param config The router default configuration.
* @returns The module and providers.
*/
static forRoot(routes?: Routes, config?: ExtraOptions): ModuleWithProviders<RouterModule>;
constructor(routerService: RouterService);
static ɵfac: i0.ɵɵFactoryDeclaration<RouterModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<RouterModule, never, [typeof i1.RouterModule, typeof i2.HeaderModule, typeof i3.CommonModule, typeof i4.ContextRouteComponent, typeof i5.EmptyComponent], never>;
static ɵinj: i0.ɵɵInjectorDeclaration<RouterModule>;
}
//# sourceMappingURL=router.module.d.ts.map