TRADEOFF BATTLE
Async pipe vs manual subscribe for Angular UI data
An Angular page needs to show live user data, loading states, and refreshed values from Observables. Would you bind with the async pipe or subscribe manually in the component?
The prompt
You are building an Angular account page. A service already exposes `user$`, `plan$`, and `notificationsCount$` as Observables. The page mostly needs to render those values in the template and update automatically when the service emits new data. A teammate wants to subscribe manually in `ngOnInit`, copy the values into component fields, and unsubscribe later. Another teammate wants to keep the streams in the template and render them with the `async` pipe. In the interview, the panel asks which direction you would defend.
Pick the direction you would defend
You are not looking for the universal winner. You are picking the strongest answer for this prompt.
Commit to a direction
Pick the option you would defend, then reveal the stronger interview framing for this prompt.