Browse Source

Load a few videos when page opens

master
hak8or 2 years ago
parent
commit
7f1447e57c
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/index.ts

+ 7
- 0
src/index.ts View File

@@ -29,6 +29,13 @@ let MainApp = new Vue({
search_completed(videos : Array<DumbYT.Video>) : void {
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…
Cancel
Save