Skip to content

How to bind to nested data? #13

@motionsmith

Description

@motionsmith

Hello,

Let's say you have a parse class called "Company", and that class has a pointer to another class called "Product". After you received a Company object from your query, you could retrieve the product name like this:

var productName = result.get("product").get("name");

This works as long as I make sure and call query.include("product") in my query.

However, as you know, angular binding doesn't work well with backbone-style models. This is where your patch comes in! But does your patch work when binding to nested objects, like this?

{{company.product.name}}

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