wix-incubator / angular-tree-control

Angular JS Tree
http://wix.github.io/angular-tree-control
MIT License
707 stars 276 forks source link

Error after file has minified #223

Closed jovana closed 8 years ago

jovana commented 8 years ago

After the file angular-tree-control.js has been minified angular crashed. This is the error: angular.1.4.7.min.js:107 Error: [$injector:unpr] http://errors.angularjs.org/1.4.7/$injector/unpr?p0=eProvider%20%3C-%20e

I have try to find out where the problem is in the file but I can't find the problem. It has something to do white a missing $injector, but whitch one. Has someone find this already? Or is there something els I mis?

Thanks for helping me out!

jovana commented 8 years ago

Found it, testing and works!

I have create a pullrequest #224. Missing an $injector on line 398

            controller: ['$scope', function ($scope) {
                ensureAllDefaultOptions($scope);
            }],