Cool snippets

RxJS

Share operator and multicasting

grabData() {
    return this.http.get('myaddress')
      .map((res:Response) => {return res.json()})
      .catch((error:any) => Observable.throw(error.json().error || 'Server error'))
      .share();
  }

CSS

Prevent flex children to overflow their parent container

.child {
  min-width: 0;
}

Cool animations