header.component.ts 587 Bytes
Newer Older
Vitali Stupin's avatar
Vitali Stupin committed
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
import { Component, OnInit } from '@angular/core';
import { LanguagesService } from '../languages.service';

@Component({
  selector: 'app-header',
  templateUrl: './header.component.html',
  styleUrls: ['./header.component.css']
})
export class HeaderComponent implements OnInit {

  constructor(private languagesService: LanguagesService) { }

  ngOnInit() {
  }

  getLangs():string[] {
    return this.languagesService.getLangs()
  }

  getLang():string {
    return this.languagesService.getLang()
  }

  setLang(lang: string) {
    return this.languagesService.setLang(lang)
  }
}