2016-04-29 12 views

答えて

1
$stateProvider 
      .state('main', { 
       url: '/main', 
       templateUrl: 'templates/main/main.html', 
       controller : 'mainController', 
       resolve: { 
        loadReqFiles: ['$ocLazyLoad', function ($ocLazyLoad) { 
         return $ocLazyLoad.load([ 
          'templates/main/main.css', 
          'js/controller/main.js', 
          'js/services/sessionService.js' 
         ]); 
        }] 
       } 
      }) 

詳細については、これを読んで、私は別のjsのを避けていますので... LazyLoad

+0

おかげで、他の任意の方法があります。圧力のために。 – Sachin

関連する問題