I have an array of object and I am running ngFor
on that, I want to show different view for each iteration of ngFor
const HEROES = [
{id: 1, name:'Superman'},
{id: 2, name:'Batman'},
{id: 5, name:'BatGirl'},
{id: 3, name:'Robin'},
{id: 4, name:'Flash'}
];
Like Superman should be default view than when I click next batman should be shown the next will be batgirl and so on.
Do you have any idea?