Skip to content

Unwrapping property of an Object #165

@dcunited08

Description

@dcunited08

Please let me know what I am doing wrong. The notes seem to show you can access the properties of an object in this way but that is on a FirebaseListObservable rather than a FirebaseObjectObservable so I am not sure how to do it.

In constructor:
this.update = af.database.object('/webTest/update');

In View:
{{ update | async | json}} {{ update.pemdos | async }}

The first on outputs the json:
{ "asdf": 1234, "fdsa": "rewq", "pemdos": "asdf" }

The second is blank.

The full code can be found:
https://github.com/dcunited08/firebase-test/blob/angular2/src/app/firebase-test.component.ts
https://github.com/dcunited08/firebase-test/blob/angular2/src/app/firebase-test.component.html

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