File

libs/core/src/lib/services/taly-page.service.ts

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.

Index

Properties
Methods

Methods

onNextPageRequested
onNextPageRequested()
Returns : void

Properties

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();
  }
}

results matching ""

    No results matching ""