Description
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.
Methods
|
onNextPageRequested
|
onNextPageRequested()
|
|
|
|
|
|
nextPageRequested$
|
Type : unknown
|
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();
}
}