Angular - Templates and Data Binding
Identify the error in this Angular template snippet:
{{ user?.address.city }} where user can be null or have address as null.{{ user?.address.city }} where user can be null or have address as null.user?.address.city. The safe navigation is only before address, not before city.user is not null but address is null, accessing city without safe navigation causes an error.city is accessed without safe navigation -> Option C15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions