seangravener
9/2/2019 - 2:02 PM

EventEmitter vs Observable #angular #rxjs

EventEmitter vs Observable #angular #rxjs

this.term.valueChanges
     .debounceTime(400)
     .flatMap(term => this.dataService.getItems(term))
     .subscribe(items => this.items = items);
     
     
//https://stackoverflow.com/questions/34717451/when-to-use-observable-vs-eventemitter-vs-dot-rule-for-change-detection-in-angul