Load a few videos when page opens
This commit is contained in:
parent
b9c4858460
commit
7f1447e57c
@ -29,6 +29,13 @@ let MainApp = new Vue({
|
|||||||
search_completed(videos : Array<DumbYT.Video>) : void {
|
search_completed(videos : Array<DumbYT.Video>) : void {
|
||||||
this.Videos = videos;
|
this.Videos = videos;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
|
// Populate some Videos immediatly on start up.
|
||||||
|
DumbYT.API.search_videos("").then(videos => {
|
||||||
|
// Copy the videos over.
|
||||||
|
this.Videos = videos;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user