I have decided to write this article/how-to guide in a sad and desperate attempt to spare others from (some of) the pain I endured over the last year and a half. Let's start at the beginning of this journey. At the time of joining a team working on an old consumer facing AngularJS application (that's another article for another day), I was a daily Sublime user and came from a Linux/macOS background using cross platform source control tools (either Mercurial or Git). Day one, I had been blessed with a wonderful MacBook Pro. Day Two, I found out the project was using TFS for source control and I would need to run Microsoft Visual Studio inside of Windows 10 to check any code in or out. After just a few hours of running my Parallels VM and trying to create some monster mash workflow between the tools I know and love in macOS for my daily front-end needs, I was fed up. Not only was I constantly paradigm switching on any number of things between th
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {ReplaySubject} from "rxjs/ReplaySubject"; | |
import {Observable} from 'rxjs/Observable'; | |
import "rxjs/add/operator/filter"; | |
import "rxjs/add/operator/map"; | |
import { Injectable } from '@angular/core'; | |
@Injectable() | |
export class EventBus | |
{ | |
private events: {}; |