Open
Description
Hi,
I used the nav tree in a project and it works fine, thank you very much for this angularjs extension!
But when I started to implement tests they failed with:
PhantomJS 1.9.7 (Linux) Controller: ChannelsCtrl encountered a declaration exception FAILED
TypeError: '[object Object]' is not a function (evaluating 'module("myApp")')
I figured out to solve the Problem by patching your js file but I don't know how to do this in coffee script so I could not create a pull request. The changes are only in the first couple of lines. I changed:
var module;
module = angular.module('angularBootstrapNavTree', []);
module.directive('abnTree', function($timeout) {
to
angular.module('angularBootstrapNavTree', [])
.directive('abnTree', function($timeout) {
which works for me. Would be nice if you could solve this problem or have you any other idea?
Sebastian