别的项目中也是这么用的,这个项目怎么就不显示呢
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,
})
}
}
}
页面中也引入了,是什么原因造成的呢
仔细看看用法https://github.com/chieffancy...