I am working in an Angular4 application ,In this I want show the images based on the API response as follows
In my application when the user clicked on a product that product name is passed to the API and API will return the images related to the product.
In the product details page I am showing the product like user hover on the small images it will display the big size images .
What I want to do is If the API returns image path for 3 images means I want to show only three images(image tag).If API returns 5 paths then I want to display 5 images .This process is dynamic based on the API response count of images.
Now I have 5 static image tag where I passed the API response it shows the images ,If API returns 4 image paths it shows 4 images and 1 alt tag.
I want to make it dynamic process...