From 69df7999f3cb7943048203c03036a3d5e737b8ba Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 18 Feb 2019 17:13:54 +0000 Subject: Made a simple test for multiple articles --- Website/scripts/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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
= [ + new Article('title1', 'description1', 'article1', 'image1'), + new Article('title2', 'description2', 'article2', 'image2'), + new Article('title3', 'description3', 'article3', 'image3') +]; + +articles.forEach(article => article.visualise(root)); -- cgit v1.2.3-13-gbd6f