import { Component , ViewEncapsulation } from '@angular/core' ; import { TranslationService , AuthenticationService } from '@alfresco/adf-core' ; import { Router } from '@angular/router' ; @ Component ( { selector : 'app-root' , templateUrl : './app.component.html' , styleUrls : [ './app.component.scss' ] , encapsulation : ViewEncapsulation . None } ) export class AppComponent { constructor ( translationService , private authService , private router ) { translationService . use ( 'en' ) ; } logout ( ) { this . authService . logout ( ) . subscribe ( ( ) => { this . router . navigate ( [ '/login' ] ) ; } ) ; } }