aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/header/header.component.ts
blob: d9311c554a0934dd6d34e10f0461f99848cc2f6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Component, OnInit } from '@angular/core'
import { I18n } from '@ngx-translate/i18n-polyfill'

@Component({
  selector: 'my-header',
  templateUrl: './header.component.html',
  styleUrls: [ './header.component.scss' ]
})

export class HeaderComponent implements OnInit {
  searchValue = ''
  ariaLabelTextForSearch = ''

  constructor (
    private i18n: I18n
  ) {}

  ngOnInit () {
    this.ariaLabelTextForSearch = this.i18n('Search videos, channels')
  }
}