in app.component I need to perform an action based on the ActivatedRoute. using: Angular6, rxjs6 (with it's new syntax)
import {Observable} from 'rxjs';
import {map} from 'rxjs/operators';
....
constructor (private route:ActivatedRoute){
const url: Observable<string> =route.url.pipe(map(segments=>segments.join('')));
}
the intent is to show/hide something based on changes in the activated route.
Thank you in advance!