Questions tagged as 'angular'

1
answer

do in Angular 6

I am creating a guard for Angular 6 and I have encountered the problem that operators rxjs no longer go as before. Aside from being imperatively different, I had to put the .map or .task within a .pipe() . This has all...
asked by 28.08.2018 / 19:56
2
answers

Firebase, Get random data ?, Create Filters Complexes [closed]

I'm programming an app similar to Pinterest and I'm currently using ionic and firebase, but I do not know if it's a good idea to continue using them, since firebase presents some limitations such as not being able to get a Random get from a list...
asked by 13.08.2018 / 06:24
1
answer

Range of dates typescript

I update: I have several objects with start dates and end dates. When inserting / modifying an object, the start or end date of the new object can not be between an existing object. That is: Exists: 06/06/2018 ----- 06/30/2018 The...
asked by 27.06.2018 / 12:07
1
answer

What is this error that I get when I use socket.io?

I have created a API that uses socket.io : const socketIo = require('socket.io'); const serverHttps = https.createServer(httpsOptions, app).listen(httpsPort, () => { console.log('HTTPS: Server running at ' + httpsPort)}); c...
asked by 21.03.2018 / 19:08
1
answer

style.marginTop with the value of an angular variable

I'm trying to give the property style.marginTop.px to my html by loading the value of an angular variable. Something like this: Template: <div class="map-container"> <div class="map"> <div class="marcador" [style.marginT...
asked by 21.03.2018 / 16:38
2
answers

TypeError, I can not map json to model. Angular 4

I am making a form to create an account and I am faced with the following problem. The first thing I do is go to find the json to an api that at the moment I have the json locally in assets, This is the method of the service that is respon...
asked by 09.05.2018 / 21:03
1
answer

Use the Navs Tab of Bootstrap in Angular 7+

I am trying to create a Nav Tab from a loop with NgFor in Angular 7+ but when I try to bind the aria-controls property it always gives me error, attached code and error. CODE <a *ngFor="let video of videos; let i = index" [ngClass]...
asked by 03.01.2019 / 14:22
1
answer

JSON in Angular 6

I'm having a problem handling Json in Angular. The Json is: { "0": { "id": "2287947", "chattime": "1544102153", "chat": "Finalizado", "chattype": "text", "media": "", "outgoing": "0",...
asked by 10.12.2018 / 22:00
1
answer

Arrangement of dates by fixes in Javascript

I have an arrangement as follows [{ first name:"---", date: "05-06-2019" }, { first name:"---", date: "08-06-2019" }, { first name:"---", date: "10-01-2019" } ] I would like to order the arrangement of the form from the closest date to the farth...
asked by 03.01.2019 / 21:47
2
answers

Get the return value of a subscribe

I am using an Apirest and I have configured a .service file in Angular with Observables. I need to get the value that the subscribe returns to be able to return it with a return but it always throws the return before I finish the http.service...
asked by 03.01.2019 / 15:05