InterviewSolution
Saved Bookmarks
| 1. |
How Can You Detect A Platform (android Or Ios) At Runtime In Ionic Application? |
|
Answer» Ionic provides platform CLASSES: when the application is loaded, Ionic adds CSS classes to the <body> tag. For EXAMPLE, on iOS DEVICES, Ionic adds platform-ios CLASS to <body> tag. Ionic also adds OS version classes such as platform-ios8 (for iOS 8) and platform-android4_4 (for Android 4.4). Ionic provides platform classes: when the application is loaded, Ionic adds CSS classes to the <body> tag. For example, on iOS devices, Ionic adds platform-ios class to <body> tag. Ionic also adds OS version classes such as platform-ios8 (for iOS 8) and platform-android4_4 (for Android 4.4). |
|