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.