akatov / angular-contenteditable

angular model for the "contenteditable" attribute
http://akatov.github.io/angular-contenteditable/
MIT License
176 stars 55 forks source link

Fails with circular error #12

Closed alonisser closed 11 years ago

alonisser commented 11 years ago

I've got [10:29:49.912] "Error: Circular dependency: getService@http://localhost:8081/lib/angular/angular.js:2884 invoke@http://localhost:8081/lib/angular/angular.js:2909 instantiate@http://localhost:8081/lib/angular/angular.js:2943 @http://localhost:8081/lib/angular/angular.js:5368 update@http://localhost:8081/lib/angular/angular.js:16188 Scope.prototype.$broadcast@http://localhost:8081/lib/angular/angular.js:9176 updateRoute/<@http://localhost:8081/lib/angular/angular.js:8201 qFactory/defer/deferred.promise.then/wrappedCallback@http://localhost:8081/lib/angular/angular.js:7509 qFactory/defer/deferred.promise.then/wrappedCallback@http://localhost:8081/lib/angular/angular.js:7509 qFactory/ref/<.then/<@http://localhost:8081/lib/angular/angular.js:7582 Scope.prototype.$eval@http://localhost:8081/lib/angular/angular.js:8926 Scope.prototype.$digest@http://localhost:8081/lib/angular/angular.js:8789 Scope.prototype.$apply@http://localhost:8081/lib/angular/angular.js:9012 done@http://localhost:8081/lib/angular/angular.js:10265 completeRequest@http://localhost:8081/lib/angular/angular.js:10449 createHttpBackend/</xhr.onreadystatechange@http://localhost:8081/lib/angular/angular.js:10407 "

this is the usage in the html

<div class="aboutBoxText"  >
  <span contenteditable="{{onMyPage}}"<!--also fails with just true here--> ng-model="user.bio" strip-br="true" select-non-editable="true">
  </span>
  <!--{{ user.bio }}//checking if this the problem-->
</div>

But it fails even when I don't use it in the html, just including it in the controller dependencies breaks the app. I also tried to include the dependency first in app.module, but then it fails with no 'contenteditable' module.

any clues?

akatov commented 11 years ago

Could you present your full example in plnkr (preferrable) or jsfiddle?

alonisser commented 11 years ago

seems to be a bug in mysetup, redownloading and setting up solved this