Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. app.directive('photo', ['$http', 'modal', function($http, modal) {
  2. return {
  3. replace: true,
  4. templateUrl: '/assets/photo.html',
  5. transclude: false,
  6. scope: {
  7. result: '=',
  8. index: '@'
  9. },
  10. controller: ['$scope', '$http', 'modal', function($scope, $http, modal) {
  11. $scope.prev = $scope.index - 1;
  12. $scope.open = function() {
  13. debugger;
  14. };
  15. }]
  16. }
  17. }]);
  18.  
  19. <div ng-repeat="r in results" photo result="r" index="$index"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement