I came across a rare situation (although this is understandable, given the different types of behavior between Android and iOS), where I wanted to use a different style specifically for iOS in the Cordova application that I am developing on the Ionic-framework.
I wondered how best to isolate my selectors on the platform? I basically wondered how I can insert a class into the body tag of each page in my platform-specific application.
My initial parameters: I could use the CordovaDeviceModule and return the platform through a custom directive or ng class. But it's a little heavy, but does ion provide a cleaner way to identify the platform?
I am running Ionic, v1.0.0-beta.13
source share