I am trying to create random span sized divs(.childBox) of twitter bootstrap using AngularJS.
-
2021-02-14 07:20
Just call add getRandomSpan()
function to your scope and call it in your template:
$scope.getRandomSpan = function(){
return Math.floor((Math.random()*6)+1);
}