0 votes
in Onsen UI by
Using Ons Objects

1 Answer

0 votes
by
To use ons objects, use import to include them from onsenui library.

ons.platform- This object is useful when there is a need to run a platform specific code.

ons.notifiations- This object provides you with a ready made popup dialog window in the screen.

import ons from `onsenui`;

import { platform, notification } from `onsenui`;

To use any of the components that are part of ons object, it is required to import ons object first.

To include any specific methods from the core library, you can do so by importing the specfic method.

Related questions

0 votes
0 votes
asked Feb 7, 2020 in Onsen UI by DavidAnderson
0 votes
asked Feb 7, 2020 in Onsen UI by DavidAnderson
...