So I'm making headway, but now getting an error that I don't know what to do with. Here's my updated code:Â
'use strict';
angular.module('myApp')
 .directive('pikachoose', function () {
  return {
   templateUrl: 'app/pikachoose/pikachoose.html',
   restrict: 'EA',
   link: function (scope, element) {
    angular.element('#pika').pikachoose({
     showCaption: false,
     transition: 6,
     autoPlay: false,
     carousel: true
    });
   },
   controller: function($scope, $timeout){
    var setPhotos = function(){
     $scope.photos = $scope.listing.photos[0].photo;
    }
    if (!$scope.listing){
     $timeout(setPhotos);
    }
   }
  };
 });