src/components/feed-list/feed-list.tsx
tag | feed-list |
Properties |
Methods |
render |
render()
|
Defined in src/components/feed-list/feed-list.tsx:10
|
Returns :
any
|
posts |
posts:
|
Type : any
|
Decorators :
@Prop()
|
Defined in src/components/feed-list/feed-list.tsx:8
|
import { Component, Prop } from '@stencil/core';
@Component({
tag: 'feed-list'
})
export class StencilComponent {
@Prop() posts: any;
render() {
if (this.posts) {
const posts = this.posts.map((post) => {
return (
<post-item post={post}></post-item>
)
});
return (
<ion-list no-lines>
{posts}
</ion-list>
)
} else {
return (
<ion-list no-lines>
<div id='fake-card'></div>
</ion-list>
)
}
}
}