cordova-plugin-screen-orientation not working on specific pages
<p>I need to allow both orientations on one view only but the rest of my other 10 views should be locked in portrait. I don't mind doing this tediously by setting each of my 10 views' controllers to lock on portrait. But I can't seem to get the screen-orientation plugin to work. </p>

<p>I used the CLI to install the plugin (succesfully installed)</p>

<p>and then this is the code</p>

<p>config.xml:</p>

<pre><code>&lt;preference name="Orientation" value="default"/&gt;
</code></pre>

<p>Controller: (this does not work)</p>

<pre><code>.controller('ProfileCtrl', function($scope, $state, $stateParams, $ionicHistory, $rootScope, $ionicPopup, $ionicPlatform) {

$ionicPlatform.ready(function() {
    screen.lockOrientation('landscape');
});
</code></pre>

<p>Thanks in advance :)</p>