main.component.ts 518 Bytes
Newer Older
Kruyff,D.L.W. (Dylan)'s avatar
Kruyff,D.L.W. (Dylan) committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { Component } from '@angular/core';
import {CacheService} from '../cache.service';

@Component({
  selector: 'app-main',
  templateUrl: './main.component.html',
  styleUrls: ['./main.component.css']
})
export class MainComponent {

  constructor(private service: CacheService) {
  }

  changeTab(tab) {
    this.service.currentTab = tab.index;
  }

  public get greyOut() {
    return this.service.querySelectionMode;
  }
21
22
23
24

  public get loadingProgress(): number {
    return this.service.loadingProgress;
  }
Kruyff,D.L.W. (Dylan)'s avatar
Kruyff,D.L.W. (Dylan) committed
25
}