export class MyComponent {
private _subscription: Subscription;
ngOnInit() {
this._subscription = myObservableI have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\