Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR TypeError: Object(...) is not a function
- at ScreenOrientation.get [as type] (index.js:45)
- at JuegoPage.webpackJsonp.447.JuegoPage.ionViewDidLoad (juego.ts:14)
- at ViewController._lifecycle (view-controller.js:486)
- at ViewController._didLoad (view-controller.js:369)
- at NavControllerBase._didLoad (nav-controller-base.js:768)
- at t.invoke (polyfills.js:3)
- at Object.onInvoke (core.js:4760)
- at t.invoke (polyfills.js:3)
- at r.run (polyfills.js:3)
- at NgZone.run (core.js:4577)
- ionic cordova plugin add cordova-plugin-screen-orientation
- npm install @ionic-native/screen-orientation
- import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
- ScreenOrientation
- import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
- ...
- constructor(private screenOrientation: ScreenOrientation, bla bla
- ...
- ionViewDidLoad() {
- console.log(this.screenOrientation.type);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement