Using AngularJS, I noticed a pattern that seems wrong to me.
When building a table, my data is connected using ng-bind. But if I need text in a cell to link to something, the link must be created manually.
An unconnected table cell is as follows:
<td ng-bind="customer.name"></td>
But if I want to create a link, I:
<td><a ng-href="/customer/{{customer.id}}">{{customer.name}}</a></td>
Is there a way to create a link using attributes? Sort of:
<td ng-bind="customer.name" ng-href="/customer/{customer.id}"></td>
source share