Angular Loop Over Array Javascript Pushstate