Angular Interview Hacking: Decoded Frontend
"What does the asterisk in *ngIf actually do?" The Hack: It is syntactic sugar for the <ng-template> element.
They eliminate the need for zone.js, allowing Angular to update only the specific DOM nodes that changed. RxJS: Asynchronous Streams decoded frontend angular interview hacking
They track dependencies automatically using a producer-consumer graph. "What does the asterisk in *ngIf actually do
It unlocks dynamic templating. If you can explain how to write a custom structural directive (e.g., *appHasPermission="'admin'" ), you move from "Junior" to "Senior" instantly. decoded frontend angular interview hacking
Run performance-heavy logic completely outside of Angular's zone using NgZone.runOutsideAngular() . Only re-enter the zone when a visual update is absolutely necessary. typescript
Ideal for lightweight applications or highly isolated operational modules. 3. Performance Tuning: Hacking the Lighthouse Score