my problem is really annoying. I should not be able to insert it dynamically if I ask God to help me solve it. Use that append method ~
html:
< tr ng-repeat= "row in tableData" >
<td ng-bind-html="getHtml(row) | to_trusted"> </td>
...
< / tr >
js:
app.filter ("to_trusted", [" $sce", function ($sce) {
return function (text) {
return $sce.trustAsHtml(text);
};
}]);
the code displayed after the front end is completed
if you write it like this, onclick can go in, but it won"t work with ng-click. Ask God to solve it.