For some reason I cannot redirect to the next state.
genAPISettings.view.html only contains:
<div ui-view></div>
The controller only contains this:
app.controller('AdminDashboardGeneralAPISettingsController', ['$scope',
'$state', 'llApi', function ($scope, $state, llApi) {
}]);
The state:
.state('dashboardContainer.GeneralAPISettings', {
url: 'GeneralAPISettings',
templateUrl: 'views/AdminDashboard/genAPISettings/genAPISettings.view.html',
controller: 'AdminDashboardGeneralAPISettingsController'
}
Using $state.go("dashboardContainer.GeneralAPISettings", {});
only shows me a flash of redirecting to the state, but then quickly redirects me to the precious state. Using <a ui-sref = "dashboardContainer.GeneralAPISettings">General API</a>
does not redirect the page at all. However, changing the url manually to /GeneralAPISettings does correctly change to this state.