Write something if there is no video
This commit is contained in:
parent
4bdc2cc935
commit
d908a155df
2 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
<div *ngIf="videos.length === 0">There is no video.</div>
|
||||
<div *ngFor="#video of videos" class="video">
|
||||
<div>
|
||||
<a [routerLink]="['VideosWatch', { id: video.id }]" class="video_name">{{ video.name }}</a>
|
||||
|
|
|
@ -15,7 +15,7 @@ import { Video } from '../../models/video';
|
|||
|
||||
export class VideosListComponent implements OnInit {
|
||||
user: User = null;
|
||||
videos: Video[];
|
||||
videos: Video[] = [];
|
||||
|
||||
private search: string;
|
||||
|
||||
|
|
Loading…
Reference in a new issue