How to change orientation of a single state/page?


#1

I have a particular state in my app that will work with “landscape orientation” (it’s a full screen slider). The question is… How can I Change the orientation to landscape just for a single state?


#2

I have the same problem :confused:


#3

Haven’t tried it myself, but this plugin claims to do what you want. Then listen to $scope.$on('$ionicView.enter', function(){}) for the state where you want to force the orientation, and put the code in that function handler.


#4

I forgot to thank you. It worked!! :smiley:


#5

No problem, glad to hear that!