app.component.ts 316 Bytes
Newer Older
1
import { Component } from '@angular/core';
2
import {CacheService} from './cache.service';
3
4
5
6
7
8

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
})
export class AppComponent {
9
10
11
12
13
14
15

  constructor(private service: CacheService) {
  }

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