NetanelBasal
4/10/2017 - 12:18 PM

us1.component.ts

@Component({
  selector: 'test',
  template: `...`,
})
@AutoUnsubscribe
export class TestComponent {
  one$;
  two$
  three;
  
  constructor( private store: Store<any>, private element : ElementRef) {}
  
  ngOnInit() {
    //...same subscriptions
  }
  
  // Notice that we don't have the ngOnDestroy method anymore
}