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?