Cdep Circular Dependency error in $ionicHistory


#1

I am getting a circular dependency error while using $ionicHistory and I am not sure what am I doing wrong. I just started using ionic beta 14. I was previously using $ionicViewService to stop user from going back

$ionicViewService.nextViewOptions({
            disableAnimate: true,
            disableBack: true
        });

What I did was just replace $ionicViewService with $ionicHistory. What am I doing wrong?


#2

Nevermind it was a result of my stupidty. I replaced all $ionicViewHistory without realizing that I also replaced them in ionic bundle too.


#3

I am running into an error in Chrome although everything is working as expected.

Error: Could not resolve 'undefined' from state 'tab.dash-browse-detail-topic'
    at Object.transitionTo (ionic.bundle.js:40682)
    at Object.go (ionic.bundle.js:40615)
    at controllers.js:218
    at ionic.bundle.js:24859
    at completeOutstandingRequest (ionic.bundle.js:13541)
    at ionic.bundle.js:13921

Implementation on success of Ajax call. I have it set to broadcast an event, display a message to the user, then redirect

}).success(function(data, status, config){
    $rootScope.$broadcast('event:success', "Post updated", $ionicHistory.goBack());

Any thoughts?