angular-sortable-view icon indicating copy to clipboard operation
angular-sortable-view copied to clipboard

Error: [$compile:ctreq]

Open waqasajaz opened this issue 10 years ago • 1 comments

I am getting this error upon start. Error: [$compile:ctreq] http://errors.angularjs.org/1.2.28/$compile/ctreq?p0=svRoot&p1=svPart

waqasajaz avatar May 04 '15 07:05 waqasajaz

If you go to https://docs.angularjs.org/error/$compile/ctreq?p0=svRoot&p1=svPart, you will see that svPart directive requires the svRoot directive. Likely your html structure is incorrect, it should be something like this:

<ul sv-root sv-part="items">
  <li ng-repeat="item in items" sv-element>{{item}}</li>
</ul>

Basically, svPart tells the svRoot element which collection it should be using (the collection you want to ngRepeat).

ebemunk avatar Jun 05 '15 18:06 ebemunk