title: How to change orientation in ionic without redirecting?
body: <p>I have application based on cordova and ionic, written in typescript.
  I have to create single view to be able to change from "portrait" to "landscape",
  without redirecting.</p>
  
  <p>Here is what I do...</p>
  
  <pre><code>        $scope.$on("orientation:changed",(event: ng.IAngularEvent) =&gt; {
              var orientation: number = (&lt;any&gt;window).orientation;
              if (orientation === 90 || orientation === -90) { // Landscape
                  this.$stateService.transitionTo("app.timesheet-landscape");
              } else if (orientation === 0 || orientation === 180 || orientation === -180) { // Portrait
                  this.$stateService.transitionTo("app.timesheet-portrait");
              }
          });
  </code></pre>
  
  <p>What is wrong with that? </p>
  
  <p>Ok... I'm actually need to create a new "ui-route-state", this is not maintainable. The transition is not smooth. </p>
  
  <p>Please can any one help please?</p>
  
  <p>If it would be possible to lock every other views to "portrait" and to control only one it would be great.</p>
  
  <p>BTW: Does Android or iOS have a difference between these two?
  Thank you for your help.</p>