0

I have been trying to make my toolbar shrink after scrolling down for the last 9 hours...

I tried "scrollDispatcher" example here: Shrinkable mat-toolbar

but it tells me "Cannot find name 'map'." in:

.pipe(
map((....

I tried this (html):

<mat-sidenav-content fxFlexFill cdkScrollable>

(ts):

ngOnInit() {
   this.scrollDispatcher.scrolled()
      .subscribe(event=> console.log('you have scrolled'))
}

but also doesn't do anything when scrolling...

did angular team change that? how do I solve it?

rami bin tahin
  • 1,897
  • 2
  • 10
  • 16

0 Answers0