ons-if-platform

This component is available with angular1 bindings only.

Conditionally display content depending on the platform / browser. Valid values are “opera”, “firefox”, “safari”, “chrome”, “ie”, “edge”, “android”, “blackberry”, “ios” and “wp”.

Usage


<div ons-if-platform="android">
  ...
</div>

See also

Attributes

Name Type Default Value Description
ons-if-platform String One or multiple space separated values: “opera”, “firefox”, “safari”, “chrome”, “ie”, “edge”, “android”, “blackberry”, “ios” or “wp”. Optional. Works only during initialization.

Discussion

Need Help?

If you have any questions, use our Community Forum or talk to us via Gitter chat. The Onsen UI team and your peers in the community will work together to help solve your issues.

For bug reports and feature requests use our GitHub Issues page.