Dynamic data-title with ng-repeat
See original GitHub issueI would like to assign the title dynamically on creation of the html element. It seem the title parser work before the assignment. If i inspect the elements in chrome the title is set but the thead element is missing.
<table ng-table="tableParams" show-filter="true" class="table table-striped">
<tr ng-repeat="item in items">
<td data-title="{{key}}" ng-repeat="(key, value) in item">
{{value}}
</td>
</tr>
</table>
Issue Analytics
- State:
- Created 10 years ago
- Comments:12
Top Results From Across the Web
Dynamic table creation with ng-repeat in angularjs
You can do this by using an ng-repeat inside another. And also, use the first line to render the headers. Note on ngRepeat...
Read more >calling function in ng-repeat to form dynamic data table
I'm new to Angular, I agreed that ng-repeat every time call the function, But my concern is if I prebuild the table and...
Read more >Solved: ng-repeat dynamic td including stripped rows/blank...
Solved: Hello, I need help on how to include stripped rows/cells if there are no data. I created this exmaple widget and this...
Read more >how can i bind my dynamically data to data table
i am generating a table by using ng-repeat in angularjs , i have bind a table to table by calling a web api...
Read more >datatable with dynamic columns
... <h1>Dynamic columns in a angularJS datatable</h1> <table class="table table-condensed table-bordered"> <thead> <tr> <th ng-repeat="column in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Are there any plans to actually fix this to accept dynamic inputs for the data-title? I tried using a function and it looked promising but for some odd reason the function will not accept any dynamic inputs either it only takes hard coded values. The fix proposed above doesn’t seem to be a very good one IMHO.
Garfield
+1