I hereby claim:
- I am xtianjohns on github.
- I am xtianjohns (https://keybase.io/xtianjohns) on keybase.
- I have a public key ASBRggcBWFtm55B0QPO9BeIjjBqP-5Qf9_2yY6-V4vF1kQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| @Component({ | |
| selector: 'my-component', | |
| }) | |
| export class MyComponent implements OnInit { | |
| @NgDestroy() // decorate the property you want to use to track your destruction | |
| private destroyed$: Observable<{}>; | |
| ngOnInit(): void { | |
| Observable.interval( 1000 ) |
| import { Component, OnInit, OnDestroy } from '@angular/core'; | |
| import { MyService } from './MyService.ts'; | |
| import 'rxjs/add/operator/takeWhile'; | |
| @Component({ | |
| selector: 'my-rad-component', | |
| }) | |
| export class MyComponent implements OnInit, OnDestroy { |
| import { Component, OnInit, OnDestroy } from '@angular/core'; | |
| import { Observable } from 'rxjs/Observable'; | |
| import { Subject } from 'rxjs/Subject'; | |
| import { MyService } from './MyService.ts'; | |
| import 'rxjs/add/operator/takeUntil'; | |
| @Component({ | |
| selector: 'my-rad-component', |