src/components/post-detail/post-detail.tsx
tag | post-detail |
Properties |
Methods |
render |
render()
|
Returns :
any
|
post |
post:
|
Type : any
|
Decorators :
@Prop()
|
Defined in src/components/post-detail/post-detail.tsx:9
|
import { Component, Prop } from '@stencil/core';
@Component({
tag: 'post-detail'
})
export class PostDetail {
@Prop() post: any;
render() {
return (
<ion-page class='show-page'>
<profile-header>
<ion-back-button defaultHref='/home' />
</profile-header>
<ion-content padding>
<post-img src={this.post.image} alt='feed image'></post-img>
<h2>{this.post.title}</h2>
<p>{this.post.postText}</p>
<am-rating colorOn='#FFEB3B' rating={this.post.rating} max-rating='5'></am-rating>
</ion-content>
</ion-page>
);
}
}