#add plugin
this.RootDetection.isDeviceRooted()
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));
#import to app.module.ts
import { RootDetection } from 'ionic-mtr-root-detection';
providers: [RootDetection]
#import to another page