Reputation: 353
I have an application I am trying to set up as a SPA with AngularJS that hooks into a REST API off of our internal SharePoint site. I am having issues with ng-view
and getting any of the views to actually load. Both views are setup as ng-template
and whenever it tries to find one, it kicks back a 404 Not Found like it's still looking for a separate page.
I know that none of the data will load because of this coming from an internal SharePoint list, but the views should at least load something to give us an idea of what is going on.
Edit: I cannot actually answer this since my account is too new, but I needed to move the ng-template
script blocks inside of the ng-app
div so that they would be recognized.
Upvotes: 1
Views: 176
Reputation: 353
Just so that this doesn't stay as unanswered:
I needed to move the ng-template
script blocks inside of the ng-app
div so that they would be recognized by Angular and not loaded in the wrong order compared to the DOM.
Upvotes: 1