@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
}