Skip to content

Instantly share code, notes, and snippets.

How To Get TFS Working on macOS, in Just Twenty Steps or Less!

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

@JSONCODE007
JSONCODE007 / event-bus.ts
Last active August 25, 2017 05:12
Global event bus for angular > 2 using rxjs observable and replay subject
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: {};