blob: 82d9d642813ee8caad8afc0de865e3baa4e00be7 [file] [log] [blame]
Matteo Scandolof6acdbe2016-12-13 10:29:37 -08001import './nav.scss';
2
Matteo Scandolo9f87f302016-12-13 18:11:10 -08003export interface INavItem {
Matteo Scandolof6acdbe2016-12-13 10:29:37 -08004 label: string;
5 state: string;
6}
7
8class 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
33export const xosNav: angular.IComponentOptions = {
34 template: require('./nav.html'),
35 controllerAs: 'vm',
36 controller: NavCtrl
37};