Most voted "ng-controller" questions
The ngController directive assigns a controller class to the view. This is a key aspect of how angular supports the principles behind the Model-View-Controller design standard.
Learn more…6 questions
Sort by count of
-
6
votes1
answer12988
viewsGet the $index of an ng-repeat that contains an ng-controller in $Scope in Angularjs
I have an app that uses a ng-repeat to list information. Like this: HTML <div ng-controller="listaCtrl"> <div ng-repeat="item in lista" ng-controller="itemCtrl">…
-
1
votes1
answer649
viewsSwitch from view to controller (Ng-Click)
I’m using ng-route to develop a single page application with Angularjs+Laravel. I’m having a problem with the switching view part through ng-click and the controller. I have a button in a view, and…
-
1
votes2
answers584
viewsAngular with ngRouter does not work when I type in Browse
I need to type in the Browse... dominio.com.br/details/1234 ...and I need the controller to take this 1234 number and perform your task. I tried everything unsuccessfully. NOTE: If I create an…
-
0
votes1
answer1511
viewsGood practices with Angularjs controllers
In a view responsible for registering the members of the entity usuarios, if it is necessary to access data from an entity pessoas, for example, the ideal is that the method that will fetch the data…
-
0
votes1
answer89
viewsCan I put one controller inside another in html?
let’s assume that my site made in Angularjs has a ng-include from a modal (a floating part of the screen) I can define a controller in this HTML file to control the part that will be included even…
-
0
votes1
answer27
viewsPlace the Angularjs switch function inside while php loop
I put the swicth function of angular, inside while in PHP. When executing only the first loop that works the rest of the function does not work. I’ve put the different ng-app and ng-controller names…