I've a service in which i'm making a POST call through
$http. I'm calling this method from a different function in a controller, I've several lines of code written in the function of my controller which I want to execute after the service call, though I'm calling the function in the beginning of my method in controller it is getting executed at the end. I don't see any errors in the console, what could be the reason. Has anyone ever faced this issue?