Including specific CSS files dependent on platform?

Hi,

I was trying to find a way to include specific CSS files depending on which platform is being used. I did find this idea https://medium.com/@tboytim/ionic-js-platform-styles-5e88f4a63202

I was wondering if anyone has another idea ?

Maybe this would be possible using a different solutions, of course I don’t think we can use ng-include here ? So anyone have another idea ? Using document.write just is ok, but must be a better way ?

Thanks

I suppose I could use ng-href ?

Any better solution ?

So thankfully we don’t need to think about this, as cordova provides a way to handle this out of the box.

So you can use cordova’s merges directory to provide platform specific files, including css files.

1 Like

Nice!, Thanks. Just what I needed. I seemed to have overlooked this.