AngularJS empty fiddle
AngularJS empty fiddle
by Avi Algaly
HTML
<div ng-app="myApp">
<div ng-controller="Ctrl">
<ul>
<li ng-repeat="r in ret">{{r.id}}</li>
</ul>
</div>
</div>
CSS
ul {
list-style:none;
}
ul li {
background-color:#333;
color:#fff;
float:left;
width:20px;
margin-right:10px;
text-align:center;
border-radius:15px;
text-align:center;
}
ul li:last-child {
margin-right:0;
}
JavaScript
var app = angular.module('myApp', []);
app.controller('Ctrl', ['$scope', function ($scope) {
$scope.ret = [{
id: 1
}, {
id: 2
}, {
id: 3
}, {
id: 4
}, {
id: 5
}];
}]);