mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
14 lines
275 B
TypeScript
14 lines
275 B
TypeScript
import {Type} from '@angular/core';
|
|
|
|
export type RouterConfig = Route[];
|
|
|
|
export interface Route {
|
|
index?: boolean;
|
|
path?: string;
|
|
component?: Type|string;
|
|
outlet?: string;
|
|
canActivate?: any[];
|
|
canDeactivate?: any[];
|
|
redirectTo?: string;
|
|
children?: Route[];
|
|
} |