aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-18 17:01:47 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-18 17:01:47 +0000
commitab7df78d8e8f0ce6fe734cd9ce6159d5e5ea11fa (patch)
tree79a4ae6673a21c9980bc7d54dd7c75a68d925d1b
parent598c0b7195d6fb95790074f0743c51c2d032b28a (diff)
downloadnewsaggregator-ab7df78d8e8f0ce6fe734cd9ce6159d5e5ea11fa.tar.gz
newsaggregator-ab7df78d8e8f0ce6fe734cd9ce6159d5e5ea11fa.tar.bz2
newsaggregator-ab7df78d8e8f0ce6fe734cd9ce6159d5e5ea11fa.zip
Made a simple constructor
-rw-r--r--Website/scripts/main.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/Website/scripts/main.ts b/Website/scripts/main.ts
index 77a80d3..10b4b40 100644
--- a/Website/scripts/main.ts
+++ b/Website/scripts/main.ts
@@ -1,8 +1,11 @@
-var root = document.getElementsByClassName('app');
-
class Article {
Title: HTMLElement;
Description: string;
ArticleLink: string;
Image: HTMLElement;
-} \ No newline at end of file
+
+ constructor(title: string, description: string, article_link: string, image_link: string) {
+ }
+}
+
+let root = document.getElementById('root');