🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Columnify is an angular directive that creates balanced columns.

Plugins

Documentation

angular-columnify

Angular directive that creates balanced columns

Usage

  1. Add hj.columnify to your app dependencies

  2. Add .column style declaration to your css

    .column {         float: left;         width: 50%; /* 50% for two columns, 33.33% for three etc */     }
  1. Add hj-columnify directive to your template, it works just like ng-repeat
    <div hj-columnify="item in items">          <div class="box" data-index="{{$index + 1}}">              Content goes here          </div>      </div>

Installation

npm i -S angular-columnify

Demo

http://homerjam.github.io/angular-columnify/


You May Also Like