ons-if-platform

Conditionally display content depending on the platform / browser. Valid values are "ios", "android", "blackberry", "chrome", "safari", "firefox", and "opera".

Usage #

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

See also #

Attributes #

Name Type
Default Value
Description
ons-if-platform String Either "opera", "firefox", "safari", "chrome", "ie", "android", "blackberry", "ios" or "windows". Optional

Discussion #