import { Component, OnInit, ViewContainerRef } from '@angular/core';
import { Router } from '@angular/router';
-import { MetaService } from 'ng2-meta';
-
-import { AuthService } from './core';
+import { AuthService, ConfigService } from './core';
+import { VideoService } from './videos';
import { UserService } from './shared';
@Component({
constructor(
private router: Router,
- private metaService: MetaService,
private authService: AuthService,
+ private configService: ConfigService,
private userService: UserService,
+ private videoService: VideoService,
viewContainerRef: ViewContainerRef
) {}
// The service will automatically redirect to the login page if the token is not valid anymore
this.userService.checkTokenValidity();
}
+
+ this.configService.loadConfig();
+ this.videoService.loadVideoCategories();
+ this.videoService.loadVideoLicences();
}
isInAdmin() {