Skip to content

Instantly share code, notes, and snippets.

@bodrovis
Last active January 9, 2019 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bodrovis/11f6fc628dceba9d7c3bbab896227573 to your computer and use it in GitHub Desktop.
Save bodrovis/11f6fc628dceba9d7c3bbab896227573 to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import { TranslateService } from '@ngx-translate/core'; // 1
@Component({
selector: 'app-tab1',
templateUrl: 'tab1.page.html',
styleUrls: ['tab1.page.scss']
})
export class Tab1Page {
private language: string = this.translateService.currentLang; // 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment