$state.go inside controller


#1

hi all,
i tray to add " $state.go(‘app.URL’); " inside my controller :smile:
.controller(‘getPictureCtrl’, function($scope) {


$state.go(‘app.endtrip’);


}

thanks


#2

Don’t forget to pass $state to your controller:

...controller('getPictureCtrl', function($scope, $state)...

#3

thank you! work fine