diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-18 17:11:21 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-18 17:11:21 +0000 |
commit | bb03e85994b755ad4b50eaacb9f864b2f52eeea8 (patch) | |
tree | dd65eaee302f904a32d4878d97b1c185d2070fec /Website | |
parent | 98332d3d5032777e0b3ff5bec7dd4399dcd44ad1 (diff) | |
download | newsaggregator-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.ts | 4 |
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'); |