Questions tagged as 'angularjs'

1
answer

Upload JSON via AngularJS

Well, I'm trying to load a json object to display its information on the screen. The code I'm using is as follows: (function() { var app = angular.module('tela', []); app.controller('TelaController', ['$http', function($http){ var use...
asked by 16.10.2015 / 20:02
2
answers

Pass variable from a controller to a service

angular.module('myApp').controller('paginasCtrl', function($scope, CarregaItens) { function carregaPaginas () { CarregaItens.getPaginas() .success(function (data) { $scope.paginas = data; }) }; car...
asked by 26.02.2016 / 20:11
1
answer

Picklist (multi-select) component does not update data. BootStrap + AngularJS

Good morning, I have a registration screen, a jsp with a modal where I implemented a picklist based on Bootstrap templates. I need to select from my bank companies (doing this) on one side and move to the other side of the selected one...
asked by 13.01.2016 / 13:15
2
answers

How to do pagination with AngularJS and php?

How do you do pagination with angular and php? My php: <?php include_once("conPDO.php"); $pdo = conectar(); $buscaCidades=$pdo->prepare("SELECT * FROM cidade"); $buscaCidades->execute(); $return = array(); while ($linha=$buscaCi...
asked by 14.01.2016 / 20:59
2
answers

menu with the selected option of another color in angularjs

My first question and my first "real" project, too. I am using bootstrap, html / css and angular and I have a horizontal menu in unordered list. What I need to do is that this menu has another color in the option that I click, but it did not wor...
asked by 18.11.2015 / 20:52
2
answers

Angularjs $ http.get

Friends, I'm new to AngularJS and I'm in need of your help. This is the following, I'm doing a request via $http of AngularJS, I can get the data all right, but I need to do post with the data I requested in $http.get()...
asked by 19.11.2015 / 03:46
2
answers

Doubts $ http AngularJs

I have a form where some inputs that will be used to make a filter, just as there are many, not to pass the fields via GET like this: Ex:? Filter1 = test & filter2 = test2 ..., can I use the $ http.post method of angularjs without any problem? I...
asked by 16.11.2015 / 11:50
1
answer

Definition of Routes IonicFramework

I use tabs to display the contents of an HTML. <ion-view> <ion-nav-title align="left">{{cliente}}</ion-nav-title> <ion-content> <ion-tabs class="tabs-striped tabs-color-balanced"> <ion-tab t...
asked by 06.07.2015 / 19:57
1
answer

How to validate session with AngularJS and PHP?

Once the login is done, how can I validate the user when it goes from one page to another, inside the system, using AngularJS and PHP? Well, when I worked with just html and php I did the following: <?php session_start(); $id_usuario = $_SE...
asked by 12.11.2015 / 03:25
1
answer

Handling error when no data is returned (AngularJS)

From the question: link How do I handle the error when I can not find the zip code? Look at the error that it returns, I wanted it to return an alert when it gives this error: XMLHttpRequest cannot load http://api.postmon.com.br/cep/0...
asked by 12.11.2015 / 02:02