Often, the request may take a few seconds to return the answer (the response). Then, we need to warn our user to wait for the request to complete. For this purpose, we use a directive called angular-loading-bar.
First of all, we need to download the directive files from the angular-loading-bar directive at https://github.com/chieffancypants/angular-loading-bar/tree/master/build.
We will use the
loading-bar.min.js files. Also, we will use the same code base that we used in the previous chapter.