You have to put
$rootScope.$on('app.loggedIn', function (event) {
console.log("inside run");
$ionicLoading.hide();
$state.go('app.offerslist', {});
});
in the controller not in the run function.
You have to put
$rootScope.$on('app.loggedIn', function (event) {
console.log("inside run");
$ionicLoading.hide();
$state.go('app.offerslist', {});
});
in the controller not in the run function.