# Lock orientation for a single page in ionic2/Angular2 with TypeScript

**URL:** <https://forum.ionicframework.com/t/lock-orientation-for-a-single-page-in-ionic2-angular2-with-typescript/75806>\
**Category:** ionic-v3\
**Created:** [January 10, 2017, 7:55pm UTC](https://forum.ionicframework.com/t/lock-orientation-for-a-single-page-in-ionic2-angular2-with-typescript/75806 "2017-01-10T19:55:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandanaEPIC](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@chandanaEPIC](https://forum.ionicframework.com/u/chandanaEPIC)\
**Post date:** [January 10, 2017, 7:55pm UTC](https://forum.ionicframework.com/t/lock-orientation-for-a-single-page-in-ionic2-angular2-with-typescript/75806/1 "2017-01-10T19:55:41Z")

</div>

Hi All,

How do I lock the orientation of a single page to always show in Portrait mode for all platforms in Ionic2/Angular2 app?

Regards,  
Chandana

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [January 10, 2017, 9:56pm UTC](https://forum.ionicframework.com/t/lock-orientation-for-a-single-page-in-ionic2-angular2-with-typescript/75806/2 "2017-01-10T21:56:45Z")

</div>

You could use the screen orientation plugin in ionic native

> **[Ionic Framework](https://ionicframework.com/docs/native/screen-orientation/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

---

<div class="post-metadata">

**Author:** ![chandanaEPIC](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@chandanaEPIC](https://forum.ionicframework.com/u/chandanaEPIC)\
**Post date:** [January 11, 2017, 8:27pm UTC](https://forum.ionicframework.com/t/lock-orientation-for-a-single-page-in-ionic2-angular2-with-typescript/75806/3 "2017-01-11T20:27:09Z")

</div>

This works for me. Thanks
