$state.go inside controller

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


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


}

thanks

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

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

thank you! work fine