aboutsummaryrefslogtreecommitdiff
path: root/Website
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-18 17:11:21 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-18 17:11:21 +0000
commitbb03e85994b755ad4b50eaacb9f864b2f52eeea8 (patch)
treedd65eaee302f904a32d4878d97b1c185d2070fec /Website
parent98332d3d5032777e0b3ff5bec7dd4399dcd44ad1 (diff)
downloadnewsaggregator-bb03e85994b755ad4b50eaacb9f864b2f52eeea8.tar.gz
newsaggregator-bb03e85994b755ad4b50eaacb9f864b2f52eeea8.tar.bz2
newsaggregator-bb03e85994b755ad4b50eaacb9f864b2f52eeea8.zip
Made visualise method which appends article container to root
Diffstat (limited to 'Website')
-rw-r--r--Website/scripts/main.ts4
1 files changed, 4 insertions, 0 deletions
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');