When my website is loaded I want to be redirected to a specific state. I do it with the following code.
angularRoutingApp.run(function ($rootScope, $state, $location, $transitions) {
$transitions.onStart({}, trans = > {
$state.go('menuNeurolengua', trans.targetState())
});
}
But I throw this problem:
How can I solve that?