Decoded Frontend - Angular Interview Hacking %21%21top%21%21 !exclusive! Direct
update() // WRONG: this.data.push(newUser); // RIGHT: this.data = [...this.data, newUser];
import Subject from 'rxjs'; import distinctUntilChanged, switchMap from 'rxjs/operators'; Decoded Frontend - Angular Interview Hacking %21%21TOP%21%21
Correctly applying @Optional() , @SkipSelf() , @Self() , and @Host() decorators to control dependency lookups. update() // WRONG: this
You can have multiple services implementing the same InjectionToken. update() // WRONG: this.data.push(newUser)