Skip to content

Not working with listview templates #13

@socionerd

Description

@socionerd

When build the code below with listview returns the result {{person.name}} instead of Jhon.
When I use on a label outside the listview works. Inside the ListView does not work.

My Controller:

var nano = require("nano");
var $model = {
   person: {
      name: "Jhon"
   }
};
nano($,$model);
$.listview.open();

XML View:

<Alloy>
    <Window id="listview">

        <ListView>
            <Templates>
                <ItemTemplate name="default">
                    <View layout="vertical">
                        <Label text="{{person.name}}"/>
                        <Label bindId="label"/>
                    </View>
                </ItemTemplate>
            </Templates>

            <ListSection>
                <ListItem template="default" label:text="Teste 1" />
                <ListItem template="default" label:text="{{person.name}}" />
                <ListItem template="default" label:text="Teste 3" />
            </ListSection>
        </ListView>

    </Window>
</Alloy>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions