import { Injectable } from '@angular/core' ; import { Observable , of } from 'rxjs' ; @ Injectable ( ) export class ObMockScrollingEvents { get isScrolled ( ) : Observable < boolean > { return of ( true ) ; } get scrolled ( ) : Observable < number > { return of ( 0 ) ; } scrolling ( isScrolling ) { } hasScrolled ( offset ) { } }