JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="app">
<div ntimes="10">
<h1>Hello World!</h1>
</div>
</div>
JavaScript
var app = angular.module('app', []);
app.directive('ntimes', function() {
return {
restrict: 'A',
link: function(scope, iElement, iAttrs, controller) {
var content = iElement.children();
for (var i = 0; i < iAttrs.ntimes - 1; i++) {
iElement.append(content.clone());
}
}
}
});