Angular Loop Through Array Javascript Mdn Reference Events