From 28b23ae6e34191409def7416590e55e41c25a52f Mon Sep 17 00:00:00 2001 From: Luong Dang Hai Date: Sun, 16 Apr 2017 00:03:16 +0300 Subject: [PATCH] Fix the error: $injector:strictdi Explicit annotation required --- src/angular-owl-carousel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/angular-owl-carousel.js b/src/angular-owl-carousel.js index 53ed466..4e95d01 100644 --- a/src/angular-owl-carousel.js +++ b/src/angular-owl-carousel.js @@ -1,7 +1,7 @@ (function () { 'use strict'; angular.module('angular-owl-carousel', []) - .directive('owlCarousel', function ($timeout) { + .directive('owlCarousel', ['$timeout',function ($timeout) { var owlOptions = [ 'items', 'margin', @@ -133,5 +133,5 @@ }); } }; - }); + }]); })();