Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    inspect the actual ajax request in network tab of console...see what clues it can give you Commented Oct 30, 2014 at 0:36
  • 1
    Using ng-controller with ng-view seems wrong. Just remove the ng-controller attribute from your <body> tag Commented Oct 30, 2014 at 0:41
  • 1
    To be clear, using ng-controller on a parent of an ng-view is not wrong. It's a very common implementation most often seen when you need an application level controller that is independent of whatever the active view is. In this example though, $routeProvider is already configured to inject MainController into the view, so the ng-controller="MainController" on the <body> tag seems redundant. Commented Oct 30, 2014 at 3:19