Actually I was doing angular migration from angularjs to angular 10. While doing the upgrade we are facing an issue with this data-link
binding. keep getting the error
Can't bind to 'data-link' since it isn't a known property of 'td'
Actually they were building a grid(table structure) in the UI, It's row click will navigate to some other page, the whole row will act as a hyperlink and they were passing the clicked cell information to the next page.
Following is the angularjs code which we needs to convert to angular 10.
<tr ng-repeat="data in vm.responseData" ng-click="vm.goToSummary(data,this)">
<td data-link="{{data.Description}}">
<span ng-bind="data.Description"
data-link="{{data.Description}}">
</span>
</td>
<td data-link="{{data.Description + 'propA'}}">
<div data-link="{{data.Description + 'propA'}}" >{{data.propA}}</div>
<span data-link="{{data.Description + 'propA_' + 'Priority'}}">{{data.propACount}}</span>
</td>
<td data-link="{{data.Description + 'propB'}}">
<div data-link="{{data.Description + 'propB'}}" >{{data.propB}}</div>
<span data-link="{{data.Description + 'propB_' + 'Priority'}}">{{data.propBCount}}</span>
</td>
</tr>
Can someone help me to identify how to use data-link binding in angular, or how to resolve this error. will also be helpful if someone can tell what's the role of data-link
link in the above code.