From bb03e85994b755ad4b50eaacb9f864b2f52eeea8 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 18 Feb 2019 17:11:21 +0000 Subject: Made visualise method which appends article container to root --- Website/scripts/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Website/scripts/main.ts b/Website/scripts/main.ts index 9f8862b..83712d4 100644 --- a/Website/scripts/main.ts +++ b/Website/scripts/main.ts @@ -21,6 +21,10 @@ class Article { this.Container.appendChild(this.Title); this.Container.appendChild(this.Image); } + + visualise(root: HTMLElement): void { + root.appendChild(this.Container); + } } let root = document.getElementById('root'); -- cgit v1.2.3-13-gbd6f