angular-ui-tree: controller required for directive not found when using nested list

Hi, I added your nested sortable to my project as your docs instructed and it work well if try to replicate demo Sample 1. However, when I try to get the recursive (sample 3) version to work in my project I get this error.

[Error] Error: [$compile:ctreq] Controller ‘uiNestedSortable’, required by directive ‘uiNestedSortableItem’, can’t be found!

Again, it works fine as long as I don’t use the recursive method. I used the exact same HTML, CSS, etc. and even copy and pasted the list object.

The full error log.

[Error] Error: [$compile:ctreq] Controller 'uiNestedSortable', required by directive 'uiNestedSortableItem', can't be found!
getControllers@http://localhost:8000/app/lib/angular/angular.js:4948:132
nodeLinkFn@http://localhost:8000/app/lib/angular/angular.js:5089:49
compositeLinkFn@http://localhost:8000/app/lib/angular/angular.js:4607:25
publicLinkFn@http://localhost:8000/app/lib/angular/angular.js:4516:45
http://localhost:8000/app/lib/angular/angular.js:15949:71
http://localhost:8000/app/lib/angular/angular.js:6277:13
wrappedCallback@http://localhost:8000/app/lib/angular/angular.js:9042:59
wrappedCallback@http://localhost:8000/app/lib/angular/angular.js:9042:59
http://localhost:8000/app/lib/angular/angular.js:9128:34
$eval@http://localhost:8000/app/lib/angular/angular.js:9953:28
$digest@http://localhost:8000/app/lib/angular/angular.js:9809:28
$apply@http://localhost:8000/app/lib/angular/angular.js:10039:31
done@http://localhost:8000/app/lib/angular/angular.js:6542:51
completeRequest@http://localhost:8000/app/lib/angular/angular.js:6726:15
onreadystatechange@http://localhost:8000/app/lib/angular/angular.js:6681:26 <li ng-repeat="item in list" ui-nested-sortable-item="" ng-include="'items_renderer.html'" class="ng-scope">
    (anonymous function) (angular.js, line 7818)

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Experiencing the same in 1.5.8