Closed dmitriz closed 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
Closing off, the styleguide has just been completely rewritten in ES6 for Angular 1.5+ (component architecture/components/one-way dataflow etc).
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