Got the onChange to work as well. I saw that it was returning an observable. Check the below code.
this.screenOrientation.onChange().subscribe(
() => {
console.log("Changed");
}
);
Got the onChange to work as well. I saw that it was returning an observable. Check the below code.
this.screenOrientation.onChange().subscribe(
() => {
console.log("Changed");
}
);