Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build schematics for angular http-loader (spinner) #129

Open
2 tasks
nongrata081 opened this issue Aug 8, 2019 · 1 comment
Open
2 tasks

build schematics for angular http-loader (spinner) #129

nongrata081 opened this issue Aug 8, 2019 · 1 comment
Labels
Angular Generic app features

Comments

@nongrata081
Copy link
Owner

nongrata081 commented Aug 8, 2019

Approaches

  • Interceptor approach
  • Reactive contextual approach

Implementation examples

https://www.pika.dev/search?q=angular-loader study all options

Options

  • Decorator-based
    Decorator based Selective Loader for Angular Http requests
    Medium
    stackblitz

  • Interceptor-based
    Display a loader on every HTTP request using Interceptor in Angular 7
    Article
    Github
    Example

Analysis

  • Decorator-based
    • shows a loader and blocks any actions on the page while http req is in progress
    • applicable to a particular method in an angular service (flexibility to apply for selected methods making http requests)
    • applicable to an http interceptor (will take effect globally for all http requests by default)

1_6haeUuUmg8CrqwNVETPfcQ

Chosen solution

Justification

@nongrata081 nongrata081 added the Angular Generic app features label Aug 8, 2019
@nongrata081
Copy link
Owner Author

nongrata081 commented Aug 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Angular Generic app features
Projects
None yet
Development

No branches or pull requests

1 participant