angular-middleware icon indicating copy to clipboard operation
angular-middleware copied to clipboard

Laravel-like middleware for Angular ui.router and ngRoute

Results 4 angular-middleware issues
Sort by recently updated
recently updated
newest added

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...

bug

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...

help wanted

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...

enhancement

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...

bug