Fix index in angular template