connexion avec back pour page 'search'

This commit is contained in:
MiharyR 2021-12-12 01:38:18 +01:00
parent a2d5a7afc6
commit d6752acaad
6 changed files with 70 additions and 59 deletions

View file

@ -34,8 +34,8 @@ export class VideoGridComponent implements OnChanges
tronquage(str: string)
{
if(str.length < 40) return str;
else return str.substring(0, 37) + "..." ;
if(str.length < 33) return str;
else return str.substring(0, 30) + "..." ;
}
onVideo(video: VideoAll): void
@ -43,4 +43,5 @@ export class VideoGridComponent implements OnChanges
const url = '/user/watching/fromSearch/'+video.videoId+'/'+video.source+'/'+this.search;
this.router.navigateByUrl(url);
}
}