Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Importing Onsen-UI with ES6
-
So I’m trying to start a new app with onsen-ui, but keep running into an issue where it doesn’t recognize certain features as they are prefixed with an
ons
example I’m using isons.notification.alert
I managed to import Page & Button, but can’t seem to get the notification to work.
Help would be awesome, thank you!
-
@Elad-Karni Notification is creating either
on-alert-dialog
/ons-alert-dialog-button
orons-toast
so you also need to import those. If you are using the latest version, aren’t you getting an error informing about this?