But the problem is that ratings(i.e., stars) are not displayed when it is provided upon request.success() (in this case API returns success). However if I provide the ratings (static) based on how it is defined in ionic-ratings, it's working. I'm not sure if i'm missing something with regards to $scope or anything else, but unclear. I tried to add directives dynamically through innerHTML (plain vanilla js type), but no use. Also i'm relatively new to angular js. I need some help to get this resolved soon. If anyone could advise me on this, that'll be great and helpful.
What am I expecting?
Just to be clear, I would like to display the star ratings dynamically based on the API response.
Which Ionic Version?
1.x (Existing app)
What is my Env?
Ionic 1 (existing version) npm : ionic-ratings
I'm trying to display the ratings dynamically based on the http response. I've used https://www.npmjs.com/package/ionic-ratings for this purpose.
But the problem is that ratings(i.e., stars) are not displayed when it is provided upon request.success() (in this case API returns success). However if I provide the ratings (static) based on how it is defined in ionic-ratings, it's working. I'm not sure if i'm missing something with regards to $scope or anything else, but unclear. I tried to add directives dynamically through innerHTML (plain vanilla js type), but no use. Also i'm relatively new to angular js. I need some help to get this resolved soon. If anyone could advise me on this, that'll be great and helpful.
What am I expecting? Just to be clear, I would like to display the star ratings dynamically based on the API response.
Which Ionic Version? 1.x (Existing app)
What is my Env? Ionic 1 (existing version) npm : ionic-ratings
Here is my code snippet item.html `
MyController.js
var request = $http({ method: 'POST', url: appUrl+'/GetRatings', headers: {blah}, transformRequest: blah, data: { Id: itemID } });
--
But if I provide static ratings like the one below it works item.html `
`
And in MyController.js if I provide something like this it works well
}