Angular directive that creates a justified grid of elements