angular api call one after another