Posts by Elias Dal Ben • 161 points
5 posts
-
0
votes1
answer59
viewsA: Problems with required no select in Angularjs
Use ng-required to check whether the model’s value is empty or not. In the case: ng-required="vm.grupoSelecionado" and ng-required="vm.subGrupoSelecionado", remember that ng-required is based on…
-
1
votes1
answer130
viewsA: Problem when publishing site in iis done in Angularjs
This can happen at the time of minification of the code, when your dependency injections in the controllers are not in the form "Strict-di". Make sure your controllers and also services are all…
-
0
votes1
answer190
viewsA: Angular JS: $http.get and $routerParams
You are not passing the parameter in the GET URL or receiving the value passed in the php select script. An example passing the parameter by GET would look like this:…
-
1
votes1
answer35
viewsA: How to not allow Backbutton using Ionic when there is a condition?
This is possibly the simplest solution. .controller('seuCtrl', function($ionicNavBarDelegate) { if (window.localStorage.getItem("fonecedor_carrinho") != '0' &&…
-
1
votes1
answer377
viewsA: Access variable from within the scope of Promise
A variable referring to the this (as var vm = this) should work yes, but remember to initialize it in the scope of ServiceMain, not in function execute. I also recommend using the loop of Angular…