Questions tagged as 'angularjs'

1
answer

Add the value between two Angular input

<label>Capital <input type="number" ng-model="vm.capital" ng-keyup="vm.total()"> </label> <label>Honorarios <input type="number" ng-model="vm.honorarium" ng-keyup="vm.total()"> </label> <h1>{{ vm.s...
asked by 09.02.2018 / 15:48
1
answer

Input of type file to obtain value

I have a problem getting the value of my input : <input type="file" name="fileToUpload[]" id="inputFileServer" accept="image/png"/> In angular I have: var file = document.getElementById('inputFileServer').files[0]; console.log...
asked by 25.09.2017 / 21:38
1
answer

I need to make a filter with angular and linq, in a project in visual studio Wapi rest c #

In my html code, I have a select and I need to select an area and show me all the tables (represented as buttons) Linq (MesasController.cs) [ResponseType(typeof(Mesa))] [System.Web.Http.HttpGet] [Route("GetMesasPorZona/{idZona}")] public IQ...
asked by 14.08.2017 / 23:06
2
answers

Problem with array

I have a very simple and strange problem in an array in which I declare it for example: $scope.pactUpdates = []; The problem is when I push on that array and I want to assign the value of a control that is empty. $scope.pactUpdates.push({...
asked by 12.07.2017 / 18:02
2
answers

how to select a day in a datepicker using AngularJS

Good, I am doing a project with AngularJS 1.6 and I would like to save in a variable of the Scope on a specific day and that when it is visible, the day is marked in the calendar without having to do anything. I assumed that using the scope vari...
asked by 05.09.2017 / 16:38
2
answers

ng-repeat for array of images

I have a function that calls the element 'categories' of the BD. This 'Categories' table has a field called 'gallery' which is an array of images. I want to do a ng-repeat that shows me the images of this field. the code that I have, but that do...
asked by 31.07.2017 / 21:46
2
answers

Get only 2 decimals

I have the following js: var array = ["paco", "185.6687", "lucas", "1365.2541"] <div ng-repeat="val in array"> {{val}} </div> I know that if it were a number that makes {{val | number:2}} function but if I have that a...
asked by 09.06.2017 / 09:58
1
answer

Error in typescript class

Good afternoon, I have the following problem with a function typescript [ts] Property 'notificaciones' does not exist on type 'typeof Alertas'. I need to use the function called message in a component but when I set the function as public st...
asked by 02.06.2017 / 20:24
1
answer

How do I order an pipes in Ionic 2?

I need to organize a product list sorted by Array of String as properties of Array of objects example: Case 1 <div *ngFor="let producto of productos| orderBy:'nombre,descripcion' : 'ASC' || 'DES'"></div>...
asked by 27.06.2017 / 19:11
1
answer

Keyboard input type number

I am creating an app with angularjs and Ionic. I have some inputs type number but in the android device, the keyboard that presents me is with the option to add a period (.) And it is not what I need. I tried: if ( ($.inArray(e.keyC...
asked by 24.03.2017 / 18:06