Questions tagged as 'angularjs'

3
answers

To know the last day of the month between 2 AngularJS dates

Greetings, I have a problem in my controller with AngularJS , I have an object that brings me the following Objeto{ FechaInicio: "2017-11-04" FechaTermino: "2017-03-04" } I need the way you tell me the last dates of the month that exist in...
asked by 06.12.2017 / 15:04
1
answer

Google Chart and AngularJS

I have a small concern, I currently need to generate statistics of records by dates of the year: MYSQL CONSULTATION SELECT fecha_registro AS Fecha, count(*) AS Registros FROM persona WHERE id_tipoUsuario = '4' AND empresa_per = '$id_empr...
asked by 04.12.2017 / 14:37
1
answer

Verify empty object

I have the following code: <div ng-if="personas.hijos"> Tiene hijos </div> <div ng-if="!personas.hijos"> No tiene hijos </div> {{personas.hijos}} => 1 - si tiene me devuelve el json {"test":{"a":0.8...
asked by 24.11.2017 / 11:22
1
answer

Ionic 2, do you use Angular 2 or AngularJS?

I understand that Angular is not the same as AngularJS , and that there is a lot of confusion regarding this topic on the Internet. For this reason, it gives me more confidence to ask the following question here, before searching for informat...
asked by 28.11.2017 / 16:22
2
answers

How to start from the second property of an object in javascript?

I have the following method: $http({ method: 'GET', url: '../ws/parqueos' }).then(function (success){ $scope.parqueos = success.data.records; for($scope.parqueosDisponibles in $scope.parqueos)...
asked by 10.11.2017 / 06:06
1
answer

Angular firebase member not exported

How are you? I'm new to angular and I'm following a YouTube tutorial and everything was fine until it started with Firebase (which I did not know). Total that has commented that it should follow the documentation of angular firebase 2. ( l...
asked by 30.10.2017 / 22:14
1
answer

Angular Promises

I have on my controller: $scope.test= function () { var var1 = 0; var var2 = 0; var1 = TestService.loadVariable("1") var2 = TestService.loadVariable("2") $scope.result = var1 + var2; } and my service is: lo...
asked by 18.10.2017 / 17:16
1
answer

Problem format imput date

My problem is that I use this: <input type="date" class="form-control" id="fechaInicio" ng-model="cita.fechaInicio" /> But I see the date in this format: 2018/02/02 and I get an error I do not want to save it so I need to change the f...
asked by 01.11.2017 / 17:56
1
answer

Pseudoelement in css with ng-class

As I can use the Pseudoelementos with ng-class I want to make the class .timeline:after have a background-color: #D8D8D8; when the variable $scope.fax is activated. The idea is that the line and the circle chan...
asked by 04.10.2017 / 21:19
2
answers

How to install the version of Angular number 5?

How can I create a project using the latest versions of angular in this case the number 5 ( angular 5 ).     
asked by 07.10.2017 / 22:37