diff --git a/src/angular-swiper.js b/src/angular-swiper.js index 44d4d74..c4871aa 100644 --- a/src/angular-swiper.js +++ b/src/angular-swiper.js @@ -48,7 +48,7 @@ swiper: '=', overrideParameters: '=' }, - controller: function($scope, $element, $timeout) { + controller: ['$scope','$element','$timeout',function($scope, $element, $timeout) { var uuid = createUUID(); $scope.swiper_uuid = uuid; @@ -107,7 +107,7 @@ }); } }); - }, + }], link: function(scope, element) {