angular - Elvis Operator with *ngFor -


is legal use elvis operator *ngfor (place question mark after users, since array might null @ moment)?

<tr *ngfor="#user of users?">   <td> {{user.username}}</td> </tr 

if array users null, elvis operator in {{user.username}} redundant because <td>...</td> never gets created , {{user.username}} isn't evaluated @ all.


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -