There is no response to the use of loading-bar in angular

this is also used in other projects. Why is this project not displayed

var App = angular.module("App", [
    "angular-loading-bar",
    "ngAnimate",
    "ngSanitize",
    "ui.bootstrap",
    "ngFileUpload",
    "infinite-scroll",
    "ngTouch",
]);
App.config([
    "cfpLoadingBarProvider",
    "$httpProvider",
    function(cfpLoadingBarProvider, $httpProvider) {
        cfpLoadingBarProvider.includeSpinner = false;
        cfpLoadingBarProvider.includeBar = true;
        $httpProvider.interceptors.push("authInterceptorService");
    }
]);
App.controller("homeCtrl", [
    "$http",
    "$scope",
    "authService",
    "ngSettings",
    "apiService",
    "modalService",
    "$interval",
    function($http, $scope, authService, ngSettings, apiService, modalService, $interval) {
    $scope.initData = function() {
            $scope.getBanner();
            window.onload = function() {
                var mySwiper = new Swiper(".swiper-container", {
                    // effect: "fade",
                    loop: true,
                    autoplay: 3000,
                })
            }
        }
    }
It is also introduced in the

page. What is the cause?

Aug.06,2021

take a closer look at the usage https://github.com/chieffancy.

Menu