daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 520 forks source link

How to get grid-item object to use it's value in other fields ? #567

Open abhinaypandey opened 7 years ago

abhinaypandey commented 7 years ago

I am using data-grid module in my project. There is one use case where I have to pass {{ item.id }}( see code below ) to ng-href link so that user can navigate to that page. The url expects {{item.id}}. Does anyone know how can I access ng-bind value inside grid-item row ?

Here is code snippet : `

    <td ng-bind="item.status_id"></td>
    <td ng-bind="item.name"></td>
    <td ng-bind="item.created_on | date:'MM/dd/yyyy'"></td>
    <td ng-bind="item.end_date | date:'MM/dd/yyyy'"></td>
        <a ng-href="/pagelink/{item.id}}" target="_blank"><i class="material-icons">open_in_new</i></a></td>
   </tr>`