I´m want to send parameters with $state.go
as:
var catPadre = $scope.catalogoPadre;
$state.go("root.catalogosgenericos", catPadre);
And I passing as parameter as:
.state('root.catalogosgenericos', {
url: "catalogosGenericos.html/",
templateUrl: "../SPA/administrador/catalogos/catalogosGenericos.html",
controller: "catalogosGenericosCtrl",
params: {
catPadre: null
},
authenticate: true
})
Into angular controller I injected dependencies like this:
function catalogosGenericosCtrl($scope, apiService, notificationService, $rootScope, $location, $http, $state, $filter) {
problem occurs when I use add $stateParams just like:
function catalogosGenericosCtrl($scope, apiService, notificationService, $rootScope, $location, $stateParams, $http, $state, $filter) {
It throwing issue in console saying:
$state is undefined
I don´t understand what is wrong, why my $stateParams
conflict $state
definition. Can someone explain me please?