private form: any;
constructor(
- private router: Router,
+ private authService: AuthService,
private elementRef: ElementRef,
- private authService: AuthService
+ private router: Router
) {}
ngOnInit() {
}
uploadFile() {
- this.form.headers = this.authService.getRequestHeader().toJSON();
this.form.formData = jQuery(this.elementRef.nativeElement).find('form').serializeArray();
+ this.form.headers = this.authService.getRequestHeader().toJSON();
this.form.submit();
}
}
<div class="videos-miniatures">
<my-loader [loading]="loading"></my-loader>
- <div class="col-md-12 no-video" *ngIf="!loading && videos.length === 0">There is no video.</div>
+ <div class="col-md-12 no-video" *ngIf="noVideo()">There is no video.</div>
<my-video-miniature *ngFor="let video of videos" [video]="video" [user]="user" (removed)="onRemoved(video)">
</my-video-miniature>