Avoid using $http success and error function | CAST Appmarq