get first element of array angularjs