added api call with angular