I had a problem recently, and found no tips on how to get it work. When I use ActivatedRoute in order to get data from my Routes, angular failed to compile and say Propert
Propert
Angular 6.x uses rxjs 6.x. In rxjs6.x, you need to chain other pipeable operators in Observable's pipe operator.
rxjs 6.x
Observable
pipe
this.route.data .pipe( map( data => data.title) ) .subscribe(title => console.log(title));