libs/core/src/lib/services/taly-page.service.ts
As of now this service is used to signal that a user has requested to navigate to the next page. This service is needed to forward this event from the navigation-service to other core services.
Properties |
Methods |
onNextPageRequested |
onNextPageRequested()
|
Returns :
void
|
nextPageRequested$ |
Default value : this._nextPageRequested$.asObservable()
|
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
/**
* As of now this service is used to signal that a user has requested to
* navigate to the next page. This service is needed to forward this event
* from the navigation-service to other core services.
*/
@Injectable({ providedIn: 'root' })
export class TalyPageService {
private _nextPageRequested$ = new Subject<void>();
nextPageRequested$ = this._nextPageRequested$.asObservable();
onNextPageRequested() {
this._nextPageRequested$.next();
}
}