Questions tagged as 'angularjs'

2
answers

Error consuming web service with POST and GET in Angularjs

Hi, I have a problem that keeps me from moving forward. I have a Web Service in which it asks to enter coordinates (INPUT); these, if they are correct, will send in JSON format a list of the name of the nearby branches (OUTPUT). You ca...
asked by 01.09.2016 / 05:40
1
answer

Angular js how to call two controllers in the same state?

Good morning. I'm using angularJs. I have a state in which I need to call two different controllers, how is it done? This is my code .state('profile.Test', { url: '/test', views: { 'test': { te...
asked by 01.09.2016 / 21:43
1
answer

Use variable located in the angularjs driver in the html!

I have the following doubt I am receiving data as follows: var Getcola= JSON.stringify(response.data); localStorage.setItem("GetMycola", Getcola); var cola1= localStorage.getItem("GetMycola"); var Mycola = JSON.parse(cola1...
asked by 21.09.2016 / 20:58
1
answer

Autocomplete with call Ajax in AngularJS

I want to implement an AutoComplete using an Ajax call for example: this.getCliente = function(data){ return $http.post(UrlobtenerDatosUsuario,data); } which returns a Json according to the parameters that it sends. Now once the data i...
asked by 03.08.2016 / 03:22
3
answers

Error making a post request in angular using application / json

Previously I made a request using the following in the Headers 'Content-Type': 'application/x-www-form-urlencoded' But now the API asks me to send it in the following way: 'Content-Type': 'application/json' The functi...
asked by 28.02.2017 / 22:25
1
answer

Frames in ionic framework

I am trying to implement frames in my ionic application, what I want is to show on the top data or information of a user and in the remaining part show a page that consumes webservices. (in this case if there is no Internet, a connection error m...
asked by 25.07.2016 / 06:14
2
answers

Pass an object between controllers

I am trying to have two controllers share an object, that is, from a view I want to send an object to another view, but I can not get it in the view that receives this object. For this I created a service: angular.module("panelYerrandApp").ser...
asked by 22.07.2016 / 13:18
1
answer

Finder with ng-repeat in AngularJS

I have a very simple search engine in my web application with AngularJS, that simple: <input type="search" id="search" maxlength=26 placeholder="Filtrar noticias..." ng-model="search.title"> <li ng-repeat="item in itemData |...
asked by 19.06.2016 / 19:28
1
answer

Save json in an angular model1 (ionic1)

I have a query in angular. I need to access the data of a json [ { "gift": [ { "description": "Recibe un pichel de te gratis!!", "name": "Te para Todos", "cod": "Te01", "poll": 6, "id": 5...
asked by 17.08.2016 / 19:41
1
answer

AngularJS: error in Array, JSON Service

I want to take the first record out of the array but I get the following error: This is my code: servicioMiClaro.obtenerDirecciones().then(function (response) { $scope.listadoProductoServicios = response.data;...
asked by 15.06.2016 / 22:33