Okay, so this may either be a very simple question, and I will leave feeling shy, but I just started using Ionic and I just play with the detailed user interface with icons.
My question is: can you set the icons in the element and change them depending on which platform you are building?
For example, I had a menu item similar to
<ion-content scroll="false"> <ul class="list"> <li class="item"><a href="#/login"><i class="icon ion-locked">Login</a></li> </ul> </ion-content>
Ionicons has an ion-locked icon for android ( ion-android-locked ) and ios ( ion-ios-locked ), and I was wondering if there is a way to set the icons according to my platform during the build process?
It is possible that for this I get separate branches in git, but I would prefer if there is an easy way to implement this?
css ionic-framework
Matthew merryfull
source share