$stateParams missing from dependency list

The controller uses $stateParams but it is missing from the dependency list