How to discover if I'm in a android or iOS


#1

I need to discover if I’m in a android or iOS platform with angularjs. Some like this:
if(is_android) {
‘show something’;
} else if (is_ios) {
‘show another thing’;
}


#2

http://ionicframework.com/docs/platform-customization/styling-angularjs.html


#3

Hello,
please check this: http://ionicframework.com/docs/api/utility/ionic.Platform/


#4

Thanks man, I’m new student from Brazil. Congratulations!


#5

I’m from Brazil too, :wink:

De nada, é um prazer ajudá-lo.