<tr ng-repeat="item in data">
{{item.name}}
</tr>
How to dynamically add the above string to make it effective and achieve dynamic binding.
The approximate code is as follows
var str = '<tr ng-repeat="item in data">' +
'{{item.name}}' +
'</tr>';
angular.element('tbody').html(str)
http://stackoverflow.com/questions/18157305/angularjs-compiling-dynamic-html-strings-from-database
What needs to be done by operating dom to load angular tags
Please use ng-if or ng-show to control it.
If you want to operate DOM, please use directive reference: angular coding standards