Good day! I create elements in the properties of an html container. How do I output certain array indexes, as it works in visual Noscript, but does not work in html. I have attached the code as an example. I tried different options, but to no avail! Thanks
<div ng-repeat="sizes in productCard.itemSizes | limitTo:2">
<div ng-if="sizes.prices[0].price !== 0">
<p>от [sizes.prices(0).price] ₽</p>
</div>
<div ng-if="sizes.prices[0].price === 0 && sizes.prices[1]">
<p>от [sizes.prices(1).price] ₽</p>
</div>
</div>
Good day! I create elements in the properties of an html container. How do I output certain array indexes, as it works in visual Noscript, but does not work in html. I have attached the code as an example. I tried different options, but to no avail! Thanks
<div ng-repeat="sizes in productCard.itemSizes | limitTo:2">
<div ng-if="sizes.prices[0].price !== 0">
<p>от [sizes.prices(0).price] ₽</p>
</div>
<div ng-if="sizes.prices[0].price === 0 && sizes.prices[1]">
<p>от [sizes.prices(1).price] ₽</p>
</div>
</div>