Angular directive that creates a justified grid of elements
bower install angular-gridify --save
http://homerjam.github.io/angular-gridify/
A data-ratio
attribute is required to calculate to determine sizes and layout, this should be calculated as width / height
<div class="gridify" ng-gridify="{wrapperSelector: '.wrapper', tileSelector: '.tile', perRow: 5, averageRatio: 1.5, gutter: 10, watch: 'tiles'}">
<div class="wrapper">
<div ng-repeat="tile in tiles" class="tile" data-ratio="{{tile.ratio}}"></div>
</div>
</div>