Skip to content

Instantly share code, notes, and snippets.

@guilbep
Last active August 29, 2015 14:16
Show Gist options
  • Save guilbep/f68d7eaa7235401935f2 to your computer and use it in GitHub Desktop.
Save guilbep/f68d7eaa7235401935f2 to your computer and use it in GitHub Desktop.
thetruth
link: function(scope, elm, attrs) {
elm[0].innerHTML = "";
var newTable = "<table border='1' width='100%'>";
var j = 1;
var i = 1;
for (; j <= 100; j++) {
newTable += "<tr>";
i = 1;
for (; i <= 10; i++) {
newTable += "<td align='center'>" + String(j + 64) + "</td>";
}
newTable += "</tr>"
}
newTable += "</table>";
elm[0].innerHTML = newTable;
}
vs
<!-- around 4 seconds to generate this tings with row= 100 column= 10-->
<!-- <tbody ng-if="true">
<tr ng-repeat="line in lines">
<td ng-repeat="column in columns">
{{line + 64}}
</td>
</tr>
</tbody> -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment