Closed Maximaximum closed 4 years ago
I should add that I install 'angular-ui-router' v.1.0.4 package via bower.
Here is a duplicate issue: https://github.com/angular-ui/ui-router/issues/3209
This worked for me. Maybe it'll help some webpack users:
import { RejectType } from "@uirouter/angularjs";
app.run($transitions =>
$transitions.onError({}, transition =>
console.log(transition.error().type === RejectType.ERROR)
)
);
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This does not mean that the issue is invalid. Valid issues may be reopened.
Thank you for your contributions.
When I try to run this code in a controller, I get
angular-ui-router.js:6683 ReferenceError: PathNode is not defined
error. How can I access the PathNode constrctor from my application?