how to get value from array in angularjs