Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. ERROR TypeError: Object(...) is not a function
  2. at ScreenOrientation.get [as type] (index.js:45)
  3. at JuegoPage.webpackJsonp.447.JuegoPage.ionViewDidLoad (juego.ts:14)
  4. at ViewController._lifecycle (view-controller.js:486)
  5. at ViewController._didLoad (view-controller.js:369)
  6. at NavControllerBase._didLoad (nav-controller-base.js:768)
  7. at t.invoke (polyfills.js:3)
  8. at Object.onInvoke (core.js:4760)
  9. at t.invoke (polyfills.js:3)
  10. at r.run (polyfills.js:3)
  11. at NgZone.run (core.js:4577)
  12.  
  13. ionic cordova plugin add cordova-plugin-screen-orientation
  14. npm install @ionic-native/screen-orientation
  15.  
  16. import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
  17.  
  18. ScreenOrientation
  19.  
  20. import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
  21. ...
  22. constructor(private screenOrientation: ScreenOrientation, bla bla
  23. ...
  24. ionViewDidLoad() {
  25. console.log(this.screenOrientation.type);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement