Javascript
<script>
var car=[
{
name:'honda',
color:'red',
comments:[
{
rating:3,
bidprice:"25,000"
},
{
rating:4,
bidprice="21,000"
]
}
];
</script>
What am i trying to do is getting the bid price of car from each comments by using ng-repeat. I did try like this
<li ng-repeat="car in carList">
{{car.comments.bidprice}}
</li>
Unfortunately, I getting nothing respond from this code. What should I do? Thanks you.
ng-repeat
to the question? – Cerbrus 17 hours agocomments
is an array. You're going to have tong-repeat
overcar.comments
– Cerbrus 17 hours ago