From 29828e6838646b05c942aba06bea6a2e2d6147d0 Mon Sep 17 00:00:00 2001 From: Joachim Nielandt Date: Sun, 4 Mar 2018 14:46:53 +0100 Subject: [PATCH] Working on it... --- src/app/app.module.ts | 6 ++++- src/app/components/posts/posts.component.html | 8 ++++-- src/app/components/posts/posts.component.ts | 26 +++++++++++++++++++ src/app/pipes/posttypepipe.pipe.spec.ts | 8 ++++++ src/app/pipes/posttypepipe.pipe.ts | 13 ++++++++++ src/assets/post/blog/first/full.html | 2 +- 6 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 src/app/pipes/posttypepipe.pipe.spec.ts create mode 100644 src/app/pipes/posttypepipe.pipe.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 80612d4..bd105b4 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -9,6 +9,8 @@ import { PostComponent } from './components/post/post.component'; import { DataloaderService } from 'app/services/dataloader.service'; import { HttpClientModule } from '@angular/common/http'; import { CvComponent } from './components/cv/cv.component'; +import { PostpipePipe } from './pipes/postpipe.pipe'; +import { PosttypepipePipe } from './pipes/posttypepipe.pipe'; @NgModule({ declarations: [ @@ -16,7 +18,9 @@ import { CvComponent } from './components/cv/cv.component'; HomeComponent, PostsComponent, PostComponent, - CvComponent + CvComponent, + PostpipePipe, + PosttypepipePipe ], imports: [ BrowserModule, diff --git a/src/app/components/posts/posts.component.html b/src/app/components/posts/posts.component.html index 63c2a60..b213059 100644 --- a/src/app/components/posts/posts.component.html +++ b/src/app/components/posts/posts.component.html @@ -1,9 +1,13 @@ -