Skip to content

Conversation

nsndeck
Copy link
Contributor

@nsndeck nsndeck commented Jun 7, 2016

When custom template is used in angular ListView, a ProxyViewContainer, from custom template, is silently wrapped in a StackLayout which results in an incorrect view to store related angular EmbeddedView reference.

<ListView [items]="myItems" (itemTap)="onItemTap($event)">
<template let-item="item" let-i="index" let-odd="odd" let-even="even">
<StackLayout [class.odd]="odd" [class.even]="even">
<!--<StackLayout [class.odd]="odd" [class.even]="even">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider deleting the commented out portion of the template.

@nsndeck nsndeck force-pushed the nnikolov/ListViewCustomTemplateFix branch from 15034e8 to b5732a5 Compare June 7, 2016 11:57
@nsndeck nsndeck merged commit ab3ff84 into master Jun 7, 2016
@nsndeck nsndeck deleted the nnikolov/ListViewCustomTemplateFix branch June 7, 2016 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants