Angular show spinner for every HTTP request with very less code changes

后端 未结 8 539
Happy的楠姐
Happy的楠姐 2020-12-01 03:08

I am working on an existing Angular application. The version is Angular 4.

The application makes HTTP calls to a REST API from lot of various components.

I w

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 03:55

    you can use some css/gif to show a spinner, and use it on your interceptor class, or you can simply use tur false to show the gif.

    
        

提交回复
热议问题