Questions tagged as 'rxjs'

1
answer

Difference between then, observable and subscribe

I have seen some codes where the functions of then , observable , and subscribe are used. I'm not sure but I think that all are doing the same, I would like to know with an example if it is possible what is the difference betw...
asked by 12.06.2018 / 17:23
2
answers

How to return an observable in Angular 2

I have the following problem, I have several controls that subscribe to an http service that returns the data of a project according to the project code, calls of this type: this.proyectosService.getByCodigo('xxx').subscribe(response => {...
asked by 02.08.2017 / 23:35
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

The property 'map' does not exist in the type 'ObservableUser'

I am new at angular and I try to work with the library rxjs but it always gives me an error that the observable object does not exist which I import it in the following way: import {Observable} from 'rxjs/Rx'; which is the way I...
asked by 27.05.2018 / 22:15
1
answer

error with NPM dependencies: peer dep missing

I have the following dilemma /usr/local/lib ├── @angular/[email protected] ├── @angular/[email protected] ├── @ionic-native/[email protected] ├── @ionic-native/[email protected] ├── @ionic/[email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── npm-check-update...
asked by 23.12.2018 / 18:29
0
answers

What is the best way to validate the data of an observable in RxJS?

I have the following code: class IPHeaderComponentController extends App.Core.Domain.BaseController { public api: ApiRule = {}; public exception: Error = null; static $inject = ['ipService', 'loggerServices', '$scope'];...
asked by 10.12.2018 / 16:12
0
answers

Seeker with throttle Angular 6

I have armed a search engine and I want the search engine when I write not to pull a search with every letter that I am writing even when I have not finished typing what I am looking for. I know I can use the throttle or throttletime method (I d...
asked by 24.11.2018 / 16:34
0
answers

equivalence of $ .watch of angularJS 1.x in angular 6

I have a sidebar and an Angular Material toolbar that should only be shown if the user is logged in. Now, I have a service to determine if the user is logged in that has a method that returns true / false. The problem is that the login is...
asked by 31.10.2018 / 02:18
0
answers

Angular 6 RxJs Imports

Does anyone know why I get the following error?    ERROR Error: Uncaught (in promise): TypeError: this.searchField.valueChanges.switchMap is not a function   TypeError: this.searchField.valueChanges.switchMap is not a function I already t...
asked by 22.09.2018 / 03:14
2
answers

Observable inside a for

I am practicing ionic2, I am doing services with observables, in one part I made a for and within that for call another service but it seems that it stops the for and is counting the total of the array. Is it because of the observable that stops...
asked by 05.04.2017 / 20:06