blob: d90df10f4fac6d06130c5a84184513d762976744 [file] [log] [blame]
Matteo Scandolof6acdbe2016-12-13 10:29:37 -08001import './nav.scss';
2
3interface INavItem {
4 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};