File

src/components/feed-list/feed-list.tsx

Metadata

tag feed-list

Index

Properties
Methods

Methods

render
render()
Returns : any

Properties

posts
posts: any
Type : any
Decorators :
@Prop()
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>
      )
    }
  }
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""