In my project I have a product page and i display the product item's photos in a bootstrap carousel using Angular. What i want is to display at the top of the carousel the number of item's images like that: 1 of 18 images
and when someone clicks the carousel's next button to change it to 2 of 18 images
, 3 of 18 images
etc.
I used .length
to get/print the number of the total images of the product item eg:
{{ productItem.photos.length }}
so it displays now: 18 images
But how can i make it to display 1 of 18 images
?
I am new in Angular