According to Mike Harrison of Jonah, he says:
In addition to manually turning the device, in fact. It would be that you would write a plugin to change the main look of the application in Cordova
But there is a
plugin from Ionic 1
, look at that. In the end, you can use it in Ionic 2.
With this plugin, you can do something like:
if(/(ipad)/i.test(navigator.userAgent)) {
$scope.changeOriantationPortrait = function() {
screen.lockOrientation('portrait');
}
}
user7605396