Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame] | 1 | import './nav.scss'; |
| 2 | |
Matteo Scandolo | 9f87f30 | 2016-12-13 18:11:10 -0800 | [diff] [blame] | 3 | export interface INavItem { |
Matteo Scandolo | f6acdbe | 2016-12-13 10:29:37 -0800 | [diff] [blame] | 4 | label: string; |
| 5 | state: string; |
| 6 | } |
| 7 | |
| 8 | class NavCtrl { |
| 9 | public routes: INavItem[]; |
| 10 | |
| 11 | constructor() { |
| 12 | this.routes = [ |
| 13 | { |
| 14 | label: 'Home', |
| 15 | state: 'xos.dashboard' |
| 16 | }, |
| 17 | { |
| 18 | label: 'Instances', |
| 19 | state: 'xos.instances' |
| 20 | }, |
| 21 | { |
| 22 | label: 'Slices', |
| 23 | state: 'xos.slices' |
| 24 | }, |
| 25 | { |
| 26 | label: 'Nodes', |
| 27 | state: 'xos.nodes' |
| 28 | } |
| 29 | ]; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | export const xosNav: angular.IComponentOptions = { |
| 34 | template: require('./nav.html'), |
| 35 | controllerAs: 'vm', |
| 36 | controller: NavCtrl |
| 37 | }; |