Hi I am using Angular 2 final with router 3.0. I want to filter the events that are emitted from this.router.events
What I want to do :
After updating to Rxjs 6 with Angular 6 upgrade.
import { map, filter, scan } from 'rxjs/operators';
...
this.registrationForm.valueChanges
.pipe(
filter(() => this.registrationForm.valid),
map((registrationForm: any) => {
this.registrationVm.username = registrationForm.username;
this.registrationVm.password = registrationForm.password;
this.registrationVm.passwordConfirm = registrationForm.passwordConfirm;
})
)
.subscribe();