Angularjs Loop Through Array Python Question