I put the code inside .controller but to no avail. You are correct, the code was not executing at all inside .run but in .controller it has again started throwing the same $ionicLoading.hide is not a function error.
↧
$ionicLoading.hide() is not working inside .then
↧