angular-middleware
angular-middleware copied to clipboard
Laravel-like middleware for Angular ui.router and ngRoute
One might want to set up a state to redirect to a sub-state using middleware. Say, `/docs` always redirects to `/docs/getting-started`. When a simple `this.redirectTo('parent.child')` middleware is written and called...
Hi, I always get those error when setup the middleware. here is my code: ``` $middlewareProvider.map({ 'check-token': ['Auth', (Auth) => { const request = this; Auth.get({ url: 'check-token' }, response...
Love this new middleware. After coding a new NodeJS backend it got me thinking that really Angular needed middleware too ... and here it is :+1: . I'd propose it...
In the ngRoute test file, the global middleware gets called twice in a row when initialized. Not sure why, but ui.router doesn't have this behavior. The ui.router configuration calls it...