Getting Index Of Array Angular Cli