To be more specific, I iterate the collection like this:
var table = document.createElement('table');
for (var i=0;i<data.length;i++){
var dataItem = data[i];
var outputTr = howTo(trTemplate);
table.appendChild(output);
}
console.log(table.outputHTML);
That mean I need fucntion howTo, for a any given trTemplate .
sâmbătă, 29 octombrie 2016, 12:11:42 UTC+3, Bogdan Mihai Ionescu a scris:
>
> I want to create dynamic in controller the template for table, in final
> form, without to use browser for render (that mean without ng-repeat or
> binding fields).
> That mean I have a html like this:
> var html = "<div ng-bind=dataItem.fieldName></div>";
> var output = '<div>FieldValue</div>';
> How can I get the output, knowing dataItem object?
>
>
--
You received this message because you are subscribed to the Google Groups
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.