From 7f1447e57cdf150c01dc8427f7860dadd483d191 Mon Sep 17 00:00:00 2001 From: hak8or Date: Sat, 31 Mar 2018 01:09:12 -0400 Subject: [PATCH] Load a few videos when page opens --- src/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/index.ts b/src/index.ts index 80e679d..96953ff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -29,6 +29,13 @@ let MainApp = new Vue({ search_completed(videos : Array) : 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; + }); } });