From 31921e1db906a58b150acf64a21b433f12447c94 Mon Sep 17 00:00:00 2001 From: Joachim Nielandt Date: Thu, 28 Dec 2017 11:05:27 +0100 Subject: [PATCH] Added assets folder and an empty posts.json file. --- package.json | 1 + src/app/app.component.html | 2 +- src/assets/posts.json | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/assets/posts.json diff --git a/package.json b/package.json index c5f82ec..f753cfe 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "e2e": "ng e2e" }, "private": true, + "assets": ["assets", "favicon.ico"], "dependencies": { "@angular/animations": "^4.0.0", "@angular/common": "^4.0.0", diff --git a/src/app/app.component.html b/src/app/app.component.html index e6b9f04..a54fe27 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -16,5 +16,5 @@ - + \ No newline at end of file diff --git a/src/assets/posts.json b/src/assets/posts.json new file mode 100644 index 0000000..35b6c90 --- /dev/null +++ b/src/assets/posts.json @@ -0,0 +1,6 @@ +[ + { + "title":"First post", + "id":1 + } +] \ No newline at end of file