Questions tagged as 'angularjs'

1
answer

Id in Html variable

I'm having a problem with a label, I want to change the id (that varies by number depending on the table that belongs) and on the line: document.getElementById('labelUsuario').id = "" + numeroMesa + ""; I get the following error: angular....
asked by 05.10.2017 / 13:16
1
answer

How to obtain the selected value of a SELECT in Angular 4?

I'm starting in the Angular 4 framework, and I have a question about Select, I need to know what option the user of my Select selects. In my App.component.html I have this code: <select name="" id="cantidad" (change)="capturar()">...
asked by 30.09.2017 / 20:34
1
answer

Load data in $ scope dynamically

I have a call to an API, in which I recover several data. I just want to show some of the fields, so I have created an array with the fields I want to show: var CamposAPI = ['a','b','c','d','e','f']; var campo = CamposAPI[i]; (está dentro d...
asked by 10.10.2016 / 17:54
3
answers

show loading image

display a loading image or a loading message while loading all products brought from the controller .controller('productosCtrl', function($scope, $http, $q, $location, $ionicLoading, Productos) { Productos.productos().then(function(argumen...
asked by 20.10.2016 / 05:22
2
answers

Angularjs hide and show answer form

I have a form to complete and calculate a loan. I see the form and a Send button. When I fill in the form and I give the Send button I want the result to be shown to me. I'm working with Angularjs . I do not know how to use ng-hide...
asked by 24.10.2016 / 14:24
2
answers

Problems when trying to send A request to my web server, from an app created with Ionic Framework

I have a problem with app híbrida , I have two input fields where I put username and password and that sent it to a URL in which is the script PHP hosted (web server that is free) and that request is blocked. From what I h...
asked by 31.08.2016 / 03:23
1
answer

Sort array of objects by 2 attributes in JavaScript

I would like to sort an array of objects by two attributes. The array is as follows: var unidades = [{"id": 1, "numero": 3, "bloque": "F"}, {"id": 2, "numero": 101, "bloque": "A"}, {"id": 1, "numero": 1, "blo...
asked by 17.08.2016 / 18:19
1
answer

@mediaQuery in angularjs driver

It is possible within $scope.body = { 'background-image':'url("../images/fondo_mix.png")', 'background-size': 'contain', 'height': '200vh', 'background-attachment':'fixed' } add a media query?     
asked by 30.12.2016 / 17:26
1
answer

Is it possible to create a table in Angular DataTables with a factory?

I'm using the famous angular-datatables plugin that combines Jquery Datatables with Angular. I just learned how to use a factory to fetch data from a JSON file. My question is: Could you use a factory on angular-datatables to use it as...
asked by 21.06.2016 / 17:45
2
answers

Select an option dynamically angular

Hello everyone, thanks for your response and the time dedicated. I have another doubt it is possible with angular to put a selected option dynamically because I have to achieve that. In the html code I have this where keysSecurityTypes is an...
asked by 22.09.2016 / 20:01