Skip to content

bahman616/AngularHttpInterceptor

Repository files navigation

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.

About

Simple Angular HttpIntercetor and Spinner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published