Created
July 31, 2014 15:29
-
-
Save mcranston18/06c6943cbd44ece679d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
angular.module('app.picture') | |
.directive('pictureList', function() { | |
return { | |
restrict: 'E', | |
scope: { | |
pictures: '=' | |
}, | |
transclude: true, | |
controller: function($scope) { | |
$scope.loadMore = function() { | |
// some code | |
}; | |
}, | |
template: | |
'<ul infinite-scroll="loadMore()">' + | |
'<li ng-repeat="photo in photos">' + | |
// do stuff | |
'<div ng-transclude></div>' + | |
'</li>' + | |
'</ul>' | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment