angularjs - Multiple Angular-isotopes on one page -
is there way initialise two jquery-isotope containers on same page using angular-isotope ? 1 works me
http://plnkr.co/edit/rlarpyvf8kslj6hyazrm?p=preview
var app = angular.module('plunker', ['iso.directives']); app.controller('isoctrl', function($scope, listservice) { $scope.xlist = listservice.xlist; $scope.xlist2 = listservice.xlist2; }); app.factory('listservice', function() { return { xlist: [ {name:'a', number:'1', date:'1360413309421', class:'purple'} ,{name:'b', number:'5', date:'1360213309421', class:'orange'} ,{name:'c', number:'10', date:'1360113309421', class:'blue'} ,{name:'d', number:'2', date:'1360113309421', class:'green'} ], xlist2: [ {name:'a2', number:'1', date:'1360413309421', class:'purple'} ,{name:'b2', number:'5', date:'1360213309421', class:'orange'} ,{name:'c2', number:'10', date:'1360113309421', class:'blue'} ,{name:'d2', number:'2', date:'1360113309421', class:'green'} ] }; });
Comments
Post a Comment