vasyabigi / angular-slick

Angular directive for slick-carousel
http://vasyabigi.github.io/angular-slick/
MIT License
500 stars 237 forks source link

Passing Slick as dependency with ng-route does not load it #181

Closed pranavkumar001 closed 6 years ago

pranavkumar001 commented 6 years ago

My App.js :-- var app = angular.module('catalogModule', ['ngRoute']). config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) { $routeProvider. when('/Home', { templateUrl: '/Home/GET', controller: 'Home' }). otherwise({ redirectTo: '/Home' }); }]);

My Controller looks like :-- app.controller('catalogModule', function ($scope, $routeParams, $location, $timeout) { // Some code }); // if i pass slick and another dependency in module like var app = angular.module('MyApp', ['ngRoute','slick']). i am getting error which is this , Please guide where m doing wrong image

pranavkumar001 commented 6 years ago

Note that :- I have already added slick.js in my code

pranavkumar001 commented 6 years ago

sorry ...it was typo error .. closing this issue .. Thanks