license import { NgZone } from '@angular/core' ; import { Observable , Subscription } from 'rxjs' ; export default function outsideZone < T > ( zone ) { return ( source ) => new Observable < T > ( ( observer ) => { let sub ; zone . runOutsideAngular ( ( ) => { sub = source . subscribe ( observer ) ; } ) ; return sub ! ; } ) ; }