How do I determine a value for a rating on Ionic?


#1

Hey guys I know how do add a value for an rating on Ionic 2, put I need to display the same value on another page.

    <h4> Value {{rating.star}} </h4>

    <rating readOnly="true" max="5" emptyStarIconName="star-outline" halfStarIconName="star-half" starIconName="star" nullable="false"> </rating>

I need to put the value ‘rating.star’ in this rating. I’m using this one.

import { Ionic2RatingModule } from 'ionic2-rating';]

How can I do that? I’ve got a list of opinions and I do need to show them this value as others have evaluated, using this rating. Thanks for all.