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
I would like to check if the user is logged in before letting him enter the state, so I am trying to use the resolve on the state defintion but always get this error: [$injector:unpr] Unknown provider: authorizedProvider <- authorized
Here is my example.component.js:
`
import template from './example.html';
import controller from './example.controller';
/*
* example Component
*/
const exampleComponent = {
restrict: 'E',
bindings: { },
template,
controller
};
export default exampleComponent;
I would like to check if the user is logged in before letting him enter the state, so I am trying to use the resolve on the state defintion but always get this error:
[$injector:unpr] Unknown provider: authorizedProvider <- authorized
Here is my example.component.js:
`
`
Here is my example.controller.js:
`
`
Here is my example.js:
`
`
The text was updated successfully, but these errors were encountered: