realisation de la page user/historique
This commit is contained in:
parent
d0ca04aefc
commit
e358b6fa0e
18 changed files with 370 additions and 28 deletions
|
|
@ -1,5 +1,11 @@
|
|||
import {Component, Input, OnChanges, OnInit, SimpleChanges} from '@angular/core';
|
||||
import {Video} from "../../../utils/interfaces/video";
|
||||
import {VideoUrlService} from "../../../utils/services/videoUrl/video-url.service";
|
||||
import {AddVideoToPlaylistsService} from "../../../utils/services/addVideoToPlaylists/add-video-to-playlists.service";
|
||||
import {ThemeService} from "../../../utils/services/theme/theme.service";
|
||||
import {MessageService} from "../../../utils/services/message/message.service";
|
||||
import {WatchedVideo} from "../../../utils/interfaces/watchedVideo";
|
||||
import {HistoriqueService} from "../../../utils/services/historique/historique.service";
|
||||
|
||||
|
||||
@Component({
|
||||
|
|
@ -12,8 +18,14 @@ export class VideoGridComponent implements OnChanges
|
|||
@Input() tabVideo: Video[] = [];
|
||||
tabTriplet = [];
|
||||
|
||||
ngOnChanges(changes: SimpleChanges): void
|
||||
|
||||
constructor(private historiqueService: HistoriqueService) {}
|
||||
|
||||
|
||||
ngOnChanges(): void
|
||||
{
|
||||
this.historiqueService.clearTabVideoUrlClicked();
|
||||
|
||||
this.tabTriplet = [];
|
||||
let n = this.tabVideo.length;
|
||||
let i = 0;
|
||||
|
|
|
|||
Reference in a new issue