Skip to content

Instantly share code, notes, and snippets.

@Syntaxv7
Syntaxv7 / events.ts
Created April 6, 2020 14:21 — forked from sagrawal31/events.ts
Alternative to Events which got removed in Ionic 5
import {Injectable} from '@angular/core';
import {Subject, Subscription} from 'rxjs';
/**
* A custom Events service just like Ionic 3 Events https://ionicframework.com/docs/v3/api/util/Events/ which got removed in Ionic 5.
*
* @author Shashank Agrawal
*/
@Injectable({
providedIn: 'root'