Use ngIf with then and else templates to handle loading and error states.
ngIf
then
else
Content loaded successfully.