This component is available with angular1 bindings only.
Conditionally display content depending on screen orientation. Valid values are portrait and landscape. Different from other components, this component is used as attribute in any element.
<div ons-if-orientation="portrait"> <p>This will only be visible in portrait mode.</p> </div>
|ons-if-orientation||String||Either “portrait” or “landscape”. Optional. Works only during initialization.|
For bug reports and feature requests use our GitHub Issues page.