Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

expression {{..}} is not visually working correctly with safe navigation operator "?"  #85

@developerndm

Description

@developerndm

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>

ngatom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions