Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: [$compile:ctreq] #39

Open
waqasajaz opened this issue May 4, 2015 · 1 comment
Open

Error: [$compile:ctreq] #39

waqasajaz opened this issue May 4, 2015 · 1 comment

Comments

@waqasajaz
Copy link

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

@ebemunk
Copy link
Contributor

ebemunk commented Jun 5, 2015

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants