mitesh-shah opened a new issue #58: OnChange event not working URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/58 I am using this plugin and I wanted to get the event when user rotates the screen. But, I get below error. **Error** `core.js:15724 ERROR TypeError: Invalid event target at setupSubscription (fromEvent.js:50) at Observable._subscribe (fromEvent.js:24) at Observable.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe (Observable.js:43) at Observable.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe (Observable.js:29) at new TestPage (test.page.ts:10) at createClass (core.js:22160) at createDirectiveInstance (core.js:22029) at createViewNodes (core.js:23255) at callViewAction (core.js:23571) at execComponentViewsAction (core.js:23490)` **My code** `this.screenOrientation.onChange().subscribe( () => { console.log(this.screenOrientation.type); } );` I am using this plugin in conjunction with Angular 7 & ionic 4
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
