Gif from loading.io

I’m pretty sure every frontend engineer spent time implementing a loading indicator that shows up while data is loading from the server.

I’m personally tired of duplicating custom loading indicator codes like this:

So I’ve created “angular2-cool-loading-indicator”

A package with which I simply can forget about custom loading indicator scripts.

It’s super easy to setup:

You must use “angular2-cool-http” package which makes intercepting XMLHTTP calls in angular possible. (And of course contains lot of cool features, read more about the package here)

Add your loading indicator template to your app once

Forget about implementing custom loading indicator codes ever again

And the loading indicator will appear while loading data from the server.

See the cool interactive DEMO here. :)

Hope you find this package useful.

Thanks for reading.