1
0
Fork 0

Write something if there is no video

This commit is contained in:
Chocobozzz 2016-04-28 19:42:57 +02:00
parent 4bdc2cc935
commit d908a155df
2 changed files with 2 additions and 1 deletions

View file

@ -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>

View file

@ -15,7 +15,7 @@ import { Video } from '../../models/video';
export class VideosListComponent implements OnInit {
user: User = null;
videos: Video[];
videos: Video[] = [];
private search: string;