How to use the device orientation plugin in Ionic / Angular2

How to use the device orientation in Ionic2 / Angular2, in order to create a compass. How does this plugin work, are there any examples. And does it work at all)) I installed this plugin and use it on the android emulator or I use the application * .app on the device, but nothing happens. Very little information about how to work with this plugin in Ionic2/Angular2 and create compass an application.

Provide a link please.
This exists: and has pretty great docs.