Blame view

src/app/main/main.component.ts 795 Bytes
c680f5b4   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
  import { Component } from '@angular/core';
  import { Router } from '@angular/router';
  
  @Component({
    selector: 'qs-main',
    templateUrl: './main.component.html',
    styleUrls: ['./main.component.scss'],
  })
  export class MainComponent {
  
    routes: Object[] = [
      {
        title: 'Відомості',
        route: '/data',
        icon: 'view_quilt',
      },
      {
        title: 'Список доріг',
        route: '/',
        icon: 'view_quilt',
      },
      {
        title: 'Список паспортів доріг',
        route: '/',
        icon: 'view_quilt',
      },
      {
        title: 'Редагування маршрутів',
        route: '/',
        icon: 'view_quilt',
      },
    ];
  
    constructor(private _router: Router) {}
  
    logout(): void {
      this._router.navigate(['/login']);
    }
  }