mpalourdio / ng-http-loader

:dango: Smart angular HTTP interceptor - Intercepts automagically HTTP requests and shows a spinkit spinner / loader / progress bar
MIT License
352 stars 65 forks source link

Not working with Angular 7 #120

Closed Arjun-Shinojiya closed 5 years ago

Arjun-Shinojiya commented 5 years ago

I tried to implement loader in angular 7.I am gettting this error.

Uncaught (in promise): TypeError: Object(...) is not a function TypeError: Object(...) is not a function at ng-http-loader.js:361

asad-c commented 5 years ago

See the compatibility table below, make sure you don't have version 6 of the ng-http-loader package installed. Downgrade to version 5 of the package and it should work with Angular 7.

ng-http-loader Angular
>=0.1.0 <0.4.0 ^4.3.0
>=0.4.0 <1.0.0 ^5.0.0
>=1.0.0 <3.2.0 ^6.0.0
>=3.2.0 <5.1.0 ^7.0.0
>=6.0.0 ^8.0.0
mpalourdio commented 5 years ago

Thanks @asad-c , that's indeed the reason.