1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1× 1× | /** * Created by Henry Zou on 10/7/2016. * * * USAGE: * In the config block, register the Interceptor * $httpProvider.interceptors.push( 'HttpBackupInterceptor' ); * */ import httpbackupInterceptor from './httpbackup.interceptor'; export default angular.module( 'httpbackup', [] ) .factory( 'httpBackupInterceptor', httpbackupInterceptor ); |