presenter function base
This commit is contained in:
@@ -4,6 +4,7 @@ import {faPersonBooth} from '@fortawesome/free-solid-svg-icons/faPersonBooth';
|
||||
import {faUserCog} from '@fortawesome/free-solid-svg-icons/faUserCog';
|
||||
import {fromEvent} from 'rxjs';
|
||||
import {distinctUntilChanged, map, shareReplay, startWith} from 'rxjs/operators';
|
||||
import {faChalkboard} from '@fortawesome/free-solid-svg-icons/faChalkboard';
|
||||
|
||||
@Component({
|
||||
selector: 'app-navigation',
|
||||
@@ -15,6 +16,7 @@ export class NavigationComponent {
|
||||
public faSongs = faMusic;
|
||||
public faShows = faPersonBooth;
|
||||
public faUser = faUserCog;
|
||||
public faPresentation = faChalkboard;
|
||||
|
||||
public readonly windowScroll$ = fromEvent(window, 'scroll').pipe(map(x => window.scrollY), startWith(0), distinctUntilChanged(), shareReplay(1));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user