I want to manually change the current state within my controller using the ui router.
I have the following code at the moment:
<button ng-click="go()">Go</button>
controllers.controller("MyController", function($scope){
$scope.go = function(){
//Manually change state
};
});
Is there something like
$uiRouter.changeState("mystate"); ?
Thanks in advance!
ui-srefdirective eg<a ui-sref="myState">go</a>