|
|
@ -1,8 +1,17 @@ |
|
|
import { Injector, Type } from '@angular/core'; |
|
|
import { Injector, Type } from '@angular/core'; |
|
|
import { Observable, of } from 'rxjs'; |
|
|
import { Observable, of } from 'rxjs'; |
|
|
|
|
|
|
|
|
|
|
|
export interface Badge { |
|
|
|
|
|
count?: number | Observable<number>; |
|
|
|
|
|
color?: string; |
|
|
|
|
|
icon?: string; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
export class NavItem { |
|
|
export class NavItem { |
|
|
id?: string | number; |
|
|
id?: string | number; |
|
|
|
|
|
name?: string; |
|
|
|
|
|
description?: string; |
|
|
|
|
|
badge?: Badge; |
|
|
component?: Type<any>; |
|
|
component?: Type<any>; |
|
|
html?: string; |
|
|
html?: string; |
|
|
action?: () => void; |
|
|
action?: () => void; |
|
|
|