Helpcenter +918010117117 https://help.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" [email protected] https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India

ms.device

It contains the information of the current device. The object is available on Frontend as well as backend.


Variables

ValueDescription
isMobileTrue if device is mobile device (phone or tablet)
isMobileAppTrue if the request is from Mobile App.
isTabletTrue if the device is a tablet
isPhoneTrue if device is phone.
isAndroidTrue for an Android device
isIphoneTrue for iPhone device
isIpadTrue for iPad device

Examples

Show different heading for different devices

<h3 ng-if="ms.device.isAndroid">Android device</h3>
<h3 ng-if="ms.device.isMobileApp">Mobile App</h3>