Wikiki / bulma-carousel

Display a carousel
MIT License
136 stars 99 forks source link

Angular compatibility fixes #32

Closed anakinjay closed 6 years ago

anakinjay commented 6 years ago

Only tested with angular, but this should probably fix integration with other frameworks like vue and react as well. One big caveat to this is I removed the on dom ready auto-attachment. Frameworks like angular and react (and I think vue?) have their own shadow dom that is a separate ready event. Adding this method lets you attach when your framework of choice is ready.

The downside is if you're not using a framework like these, you'll have to manually call Carousel.attach() after loading the script on the page.

Also sorry for all the formatting changes, my code editor reformats automatically and I didn't even think about it before I worked through the changes.

Main Changes:

should definitely fix #27 , potentially fixes or related to #30

Wikiki commented 6 years ago

Thank you. I didn't though about the static attach method. I'm currently rewriting the source and then I'll integrated your proposal into it.

alexssandrog commented 6 years ago

Hi, this error occurs on version 2.2.0 again...

Wikiki commented 6 years ago

@alexssandrog please give me more details because the code has been totally refactored and this issue has taken into account many points.

Wikiki commented 6 years ago

And please try last release v3.0.0

alexssandrog commented 6 years ago

Tks, v3.0.0 build perfectly!!!

Wikiki commented 6 years ago

Perfect 😊