aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-18 17:13:54 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-18 17:13:54 +0000
commit69df7999f3cb7943048203c03036a3d5e737b8ba (patch)
treed054972c888e14b7c433b95ff2be73f2041485df
parentbb03e85994b755ad4b50eaacb9f864b2f52eeea8 (diff)
downloadnewsaggregator-69df7999f3cb7943048203c03036a3d5e737b8ba.tar.gz
newsaggregator-69df7999f3cb7943048203c03036a3d5e737b8ba.tar.bz2
newsaggregator-69df7999f3cb7943048203c03036a3d5e737b8ba.zip
Made a simple test for multiple articles
-rw-r--r--Website/scripts/main.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/Website/scripts/main.ts b/Website/scripts/main.ts
index 83712d4..54d61a1 100644
--- a/Website/scripts/main.ts
+++ b/Website/scripts/main.ts
@@ -28,3 +28,10 @@ class Article {
}
let root = document.getElementById('root');
+let articles: Array<Article> = [
+ new Article('title1', 'description1', 'article1', 'image1'),
+ new Article('title2', 'description2', 'article2', 'image2'),
+ new Article('title3', 'description3', 'article3', 'image3')
+];
+
+articles.forEach(article => article.visualise(root));