Skip to content

Instantly share code, notes, and snippets.

@felixlindemann
Created November 21, 2021 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felixlindemann/9dade70643310b1f2c155e2e32c038d1 to your computer and use it in GitHub Desktop.
Save felixlindemann/9dade70643310b1f2c155e2e32c038d1 to your computer and use it in GitHub Desktop.
Blog in Angular: Baseclass
@Component({
selector: 'app-blogPost',
template: `
<div class="col">
<h3>abstract Blog post</h3>
<p>this is the dummy page - you should see the actual post.</p>
</div>
`
})
export class blogPost {
Component: Type<any>;
category: BlogCategory;
id: string;
introduction: string ;
hasThumbnail: boolean;
thumbnail: string;
tags: string[];
author: string;
postDateTime: Date;
title(): string ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment