I am trying to create random span sized divs(.childBox) of twitter bootstrap using AngularJS.
-
2021-02-14 07:07
Improvisation of the accepted answer to prevent digest overflow:
var rand = 1;
$scope.initRand = function(){
rand = Math.floor((Math.random()*6)+1)
}
$scope.getRandomSpan = function(){
return rand;
}