I use it on angular js and create class to manage it
var clsLoader = (function () {
var mprogress = new Mprogress({
template: 2
});
return {
show: function () {
mprogress.start();
},
hide: function () {
mprogress.end();
}
}
})();
when i have two call for function show, and two call for function hide the loader not ended?
I use it on angular js and create class to manage it
when i have two call for function show, and two call for function hide the loader not ended?