blob: 8cb3b66a1e119e65c892c21672851476885ac117 [file] [log] [blame]
export interface IXosNavigationRoute {
label: string;
state?: string;
url?: string;
}
export interface IXosNavigationService {
query(): IXosNavigationRoute[];
add(route: IXosNavigationRoute): void;
}
export class NavigationService {
private routes: IXosNavigationRoute[];
constructor() {
this.routes = [
{
label: 'Home',
state: 'xos.dashboard'
}
];
}
query() {
return this.routes;
}
add(route: IXosNavigationRoute) {
this.routes.push(route);
}
}