mihnsen / ui-carousel

A simple, lightweight module for carousel in your AngularJS app, Inspired from slick carousel.
http://mihnsen.github.io/ui-carousel/
MIT License
77 stars 67 forks source link

inject angular-ui-carousel into angularjs #70

Open JDevjs opened 5 years ago

JDevjs commented 5 years ago

i dont think im doing it wrong but i keep getting an error is this carousel still working btw ? because i keep getting this

import uiCarousel from 'angular-ui-carousel';

angular.js:125 Uncaught Error: [$injector:modulerr] Failed to instantiate module meanstoreApp due to:
Error: [$injector:modulerr] Failed to instantiate module {} due to:
Error: [ng:areq] Argument 'module' is not a function, got Object
cuonghv91 commented 5 years ago

any one has any ideas ????

cuonghv91 commented 5 years ago

I gotta commit Angularjs is completely fraud in supporting some basic module, for example carousel :/

theCrius commented 5 years ago

The error you're getting is most probably due to you using modern ES syntax but this old library not supporting it.

Nothing to do with angularJs (which it's also considered a legacy framework today, btw)

abadilah1 commented 5 years ago

Does this package work in version angular 7