Write something if there is no video

pull/10/head
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;