I am new to html and angularjs. Here I am trying to assign span width dynamically from angular js responce
<div class="statarea" ng-repeat="x in names">
<div class="ratingarea">
<div class="your-rating"><span style="width:"+{{ x.width }}+";" class="outer"></span>
</div>
<div class="clear"></div>
</div>
</div>
In my Script is
$http.get(url).success(function (response) {
$scope.names = response;
});
my response is
[
{"width":"78%"},
{"width":"60%"},
{"width":"50%"}
]
I know it is not write,but i don't have any idea.. Thanks in advance
ng-style="x"