mankindsoftware / angular-isotope

AngularJS directives to easily work with JQuery Isotope.
http://mankindsoftware.github.io/angular-isotope
204 stars 79 forks source link

Use with "controller as" #55

Open smlombardi opened 8 years ago

smlombardi commented 8 years ago

We create our controllers with the 'controller as' method, as in

controller: 'IsotopeController as iso'

then in the controller:

  _this.xList = [{
      'name': 'a',
      'number': '1',
      'date': '1360413309421',
      'class': 'purple'
    }, 

and in the html: <li ng-repeat="x in iso.xList" isotope-item="isotope-item" class="kindling {{x.class}}">

this correctly displays them, but the sort and filter buttons do nothing.