Hi
I am working on custom directive which has got some bugs i need to fix
that.
here is the html Code
<div *ngIf="rows.length > 0">
<data-table id="voucher-table"
[items]="rows"
(reload)="reloadData($event)"
[itemCount]="rowsCount"
[limit]="50"
[expandableRows]="false"
[indexColumn]="false"
[selectColumn]="true"
[multiSelect]="true"
>
<data-table-column
[property]="'description'"
[header]="'Display message'"
[sortable]="true"
[selectOnRowClick] = "true"
<ng-template #dataTableCell let-item="item">
<a href="javascript:void(0)"
(click)="collapsed=!collapsed">Description</a>
<p *ngIf="collapsed">{{item['description']}}</p>
</ng-template>
</data-table-column>
</data-table>
</div>
here on click of description link description has to show ...now on click
the description of the all rows are collapsing ...i want only that row
get collapsed to show the description.why it is reflecting in all the
rows ? if i click on row 1 then all the rows description is coming in
the table .
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.