Questions tagged [ng-controller]

The AngularJS ngController directive attaches a controller class to the view. This is a key aspect of how angular supports the principles behind the Model-View-Controller design pattern.

186 questions
0
votes
0 answers

AngularJS parent and child ng-controllers inside a single template

I have a template which is served by 2 controllers. The parent controller is coming from a configuration in ui-router. The child controller is in the same template file but using ng-controller like
. On the parent…
devwannabe
  • 3,160
  • 8
  • 42
  • 79
0
votes
1 answer

ngRoute resolve injector issue

I'm getting an error saying, [$injector:unpr] http://errors.angularjs.org/1.4.1/$injector/unpr?p0=qProvider%20%3C-%20q%20%3C-%20searchResult When I use the following config and controller. I'm trying to resolve and http request on a specific…
user1915190
  • 307
  • 1
  • 2
  • 14
0
votes
2 answers

angularjs ng-controller inside ng-controller

I have a ng-controller in _Layout page like this.
left content.... @RenderBody right content.. And using angular module in layout with ajax ( that part works ) corresponding Javascript code to access $scope…
Amir Shah
  • 29
  • 3
-1
votes
1 answer

ng-controller doesn't work when its parameter is a variable

I get a message " Error: [ng:areq] Argument 'curController' is not a function, got string " when I try to put a variable into ng-controller param
controller …
1 2 3
12
13