angular.module('app')
.controller("IndexController", IndexController);
IndexController.$inject = ['CustomerService','StorageService','IMSqliteUtilService','SysMsgService', 'MsgService','$scope','$rootScope','$ionicHistory','$state','ConfigService', '$ionicScrollDelegate', '$timeout','CityService' , 'UtilService', 'UserService', 'TaskIndexService', '$ionicSlideBoxDelegate', 'MerchantIndexService', 'BlackService', 'BannerService', 'SqliteUtilService', '$window','$location','$ionicTabsDelegate','$ionicModal'];
function IndexController (CustomerService,StorageService,IMSqliteUtilService,SysMsgService, MsgService,$scope,$rootScope,$ionicHistory,$state,ConfigService, $ionicScrollDelegate, $timeout,CityService , UtilService, UserService, TaskIndexService, $ionicSlideBoxDelegate, MerchantIndexService, BlackService, BannerService, SqliteUtilService, $window,$location,$ionicTabsDelegate,$ionicModal){
}
这是ionic项目里首页controller的依赖注入,注入的东西实在过多,想请问各位前辈有没有好的优化的思路或者方法可以借鉴。
杨魅力
相关分类