Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 1.12 KB

File metadata and controls

29 lines (15 loc) · 1.12 KB

AngularHttpInterceptor

This is a sample application demonstrating how to use angular HttpInterceptors to intercept Http requests and how to use this feature to show a spinner icon whenever there is a server request throughout the application.

HttpInterceptor is based on this.

Installation

Run npm install to install required packages.

Development server

Run npm start to start the application. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.