We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to use a separate store with ng-redux, it is not possible to use this package unless you manually import the router-middleware.
ng-redux
This (routerMiddleware) should be exported from redux-ui-router main index file, so it it more easily compilable by webpack / babel.
routerMiddleware
redux-ui-router
The $state service can be manually injected, by using a proxy $injector on the DOM.
import routerMiddleware from '../../../node_modules/redux-ui-router/src/router-middleware'; const handler = { get: (obj, prop) => angular.element(document).injector().get('$state')[prop], }; const stateProxy = new Proxy({}, handler); export default routerMiddleware(stateProxy);```
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
No branches or pull requests
When trying to use a separate store with
ng-redux
, it is not possible to use this package unless you manually import the router-middleware.This (
routerMiddleware
) should be exported fromredux-ui-router
main index file, so it it more easily compilable by webpack / babel.The $state service can be manually injected, by using a proxy $injector on the DOM.
The text was updated successfully, but these errors were encountered: