How to set rating ?
rajanshahsa opened this issue · comments
Rajan Shah commented
Hello,
I want to set rating in ionic2. when page load I want to fetch the data from server and based on rating received from server I want to display it to user.
Can you please help me in this?
Note:- User can't update it.
Acácio Andruczewicz commented
Hello, @rajanshahsa
All you have to do is define ngModel property and assign the fetched value to it. If user can't update it, just set readOnly property to true.
Rajan Shah commented
@andrucz Thank you for your answer, Its works after define ngModel property. Sorry I forgot to closed ticket. and sorry for late reply