Having trouble with implementing angular 2 ngFor
Defined model:
export class PaginationPage<T> {
content: Array<T>;
}
In component:
page: PaginationPage<Blog>;
blogs: Array<Blog>;
...
this.blogs = page.content;
In template:
<div *ngFor="let blog of blogs">
: functioning as expected
<div *ngFor="let blog of page.content">
: encountering an issue. Error : Cannot read property 'content' of undefined