Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
ng-template let-* not passing through variables
posted

I have an igx-grid, and I can't get my field variables to get passed through into the ng-template. The value user is undefined:

    <igx-grid #grid1 id="grid1" [data]="localData" [autoGenerate]="false" [paging]="false" (onCellSelection)="selectCell($event)" (onColumnInit)="initColumns($event)">
        <igx-column [sortable]="true" field="userName" header="User Name"></igx-column>
        <igx-column field="company" header="Company"></igx-column>
        <igx-column field="email" header="Email"></igx-column>
        <igx-column field="phone" header="Phone"></igx-column>
        <igx-column field="userName" header="Approve">
            <ng-template igxCell let-user="userName">
                <button igxButton igxRipple (click)="approveUser($event,user)">Approve</button>
            </ng-template>
        </igx-column>
    </igx-gr

Parents Reply Children
No Data