You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
I am using as a safe navigation operator (?) to "protect" template until HTTP call is completed this stops an error message if the variable i.name is === undefined. This is a minor annoyance.
Error message if ? not used: "TypeError: Cannot read property 'name' of undefined"
Reason for request:
Visually Atom looks like the code is not encased after "?".
Error: None
Code: <div *ngFor="let i of this.posts;" >{{i?.name}}</div>
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using as a safe navigation operator (?) to "protect" template until HTTP call is completed this stops an error message if the variable i.name is === undefined. This is a minor annoyance.
Error message if ? not used: "TypeError: Cannot read property 'name' of undefined"
Reason for request:
Visually Atom looks like the code is not encased after "?".
Error: None
Code:
<div *ngFor="let i of this.posts;" >{{i?.name}}</div>
The text was updated successfully, but these errors were encountered: