toddmotto / angularjs-styleguide

AngularJS styleguide for teams
https://ultimateangular.com
5.96k stars 700 forks source link

This usage of resolve might lead to bad UX #45

Closed dmitriz closed 8 years ago

dmitriz commented 8 years ago

The recommendation here does not seem to do what the code-to-avoid does: https://github.com/toddmotto/angular-styleguide#routing-resolves

The second approach blocks the new route change forcing the user to wait, whereas the first one doesn't.

See this discussion: https://www.reddit.com/r/angularjs/comments/3xq26r/is_resolve_a_ux_antipattern/cyamrzr

toddmotto commented 8 years ago

Closing off, the styleguide has just been completely rewritten in ES6 for Angular 1.5+ (component architecture/components/one-way dataflow etc).