You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.
Hi Thanks for the seed project. I have setup a project basedon the steps and it works great!
However I am facing issue while trying to setup unit test case with ui-router.
var module = angular.module('moduleAddonControllers', []);
module.controller('TestaddonAddCtrl',['$scope','$state', function ($scope,$parse) {
$scope.mode = "add";
$state.go();
}
]);
When controller is having reference of '$state' my unit test case if failing with following error message!
"Error: [$injector:unpr] Unknown provider: $stateProvider <- $state"
My guess is *Spec.js are included before the ui-router causing the above issue. Kindly let me know how we can get around this?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi Thanks for the seed project. I have setup a project basedon the steps and it works great!
However I am facing issue while trying to setup unit test case with ui-router.
var module = angular.module('moduleAddonControllers', []);
module.controller('TestaddonAddCtrl',['$scope','$state', function ($scope,$parse) {
}
]);
When controller is having reference of '$state' my unit test case if failing with following error message!
"Error: [$injector:unpr] Unknown provider: $stateProvider <- $state"
My guess is *Spec.js are included before the ui-router causing the above issue. Kindly let me know how we can get around this?
The text was updated successfully, but these errors were encountered: