Questions tagged as 'ng-controller'

1
answer

Get the $ index of an ng-repeat that contains an ng-controller in $ scope in AngularJS

I have an application that uses ng-repeat to list information. So: HTML <div ng-controller="listaCtrl"> <div ng-repeat="item in lista" ng-controller="itemCtrl"> <pre>{{item}}</pre> </div&g...
asked by 22.01.2016 / 14:35
2
answers

Angle with ngRouter does not work when I type in browse

I need to type in browse ...    domain.com.br/details1234 ... and I need the controller to take this number 1234 and perform its task. I tried everything without success. Home NOTE: If I create an anchor within the page by hrefing the rou...
asked by 04.01.2017 / 22:40
1
answer

Change view by controller (Ng-Click)

I'm using ng-route to develop a single page application with angularjs + laravel. I'm having a problem with the swap view with ng-click and controller. I have a button in a view, and I would like it to be clicked by redirecting it to another vie...
asked by 30.08.2016 / 02:55
1
answer

Good practices with AngularJS controllers

In a view responsible for registering members of the usuarios entity, if it is necessary to access data of a pessoas entity, for example, the ideal method is that the method that will search the data of this pessoa belongs t...
asked by 02.04.2016 / 05:42
1
answer

Put the angularJS switch function inside loop while php

I put the swicth function of the angle, within while in PHP. When executing only the first loop that works the rest, the function does not work. I have already put the names ng-app and ng-controller different all loops, but even so only the firs...
asked by 23.10.2018 / 01:32
1
answer

Can I put a controller inside another in html?

Let's suppose that my site made in AngularJS has a ng-include of a modal (a part of the screen that floats) I can define a controller in this HTML file to control the part that will be included even if I already have a controller before t...
asked by 26.07.2018 / 21:08
0
answers

How to use Ng Cordova ImagePicker on Ionic 1?

I'm using Ionic version 1 and the ng cordova $ imagepicker plugin. I have already resolved the dependencies. But it is giving error because it does not recognize the getpictures () method on the Controller. For this plugin to work do you need th...
asked by 03.02.2018 / 13:45