app.service.ts 620 Bytes
Newer Older
XFT-dev's avatar
XFT-dev committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
import {Injectable} from '@angular/core';
import {TranslateService} from '@ngx-translate/core';
import {AuthService} from './core/services/auth/auth.service';
import {TransactionsService} from './core/services/services/transactions.service';

@Injectable({
  providedIn: 'root'
})
export class AppService {

  constructor(
    private translate: TranslateService,
    private transactionsService: TransactionsService,
    private authService: AuthService,
  ) { }

   init() {
    this.authService.init();
    this.translate.setDefaultLang('en');
    this.translate.use('en');
    this.transactionsService.init();
  }
}