2014-09-20 1 views
-1

ngBootbox 및 토스터를 초기화하려고합니다.포함시키지 않은 것은 무엇입니까?

var app, deps; 

      deps = ['treeGrid']; 

      app = angular.module('MyApp', deps); 

      app.controller('treeGridController', [ 
       '$scope', '$http', '$ngBootbox', 'toaster', 
       function($scope, $http, $ngBootbox, toaster, $timeout) { 
..some code 
}]); 

그리고 콘솔에서이 오류를 얻을 :

[$ 인젝터 : unpr] 알 수없는 제공 : $ < ngBootboxProvider - $ ngBootbox

내가 설치하는 것을 잊지 않았다 무엇을? 비슷한 페이지가 있는데 제대로 작동합니다.

답변

0

는이 같은 모듈 종속성에 ngBootboxtoaster을 추가해야합니다

deps = ['ngBootbox', 'toaster', 'treeGrid'] 
관련 문제