Last active
August 29, 2015 14:16
-
-
Save guilbep/f68d7eaa7235401935f2 to your computer and use it in GitHub Desktop.
thetruth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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