Where to store pictures in ionic2?


#1

Hy guys!

I have an issue while I’m trying to set up a background image for my login window.
I have the image in src/assets/images/someImage.jpg and in my css file:

// background: url('assets/images/startbackground.jpg'); background-image: url('../assets/images/startbackground.jpg');

With ionic serve everything is fine, but on device it’s an error:
E/AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/www/assets/images/startbackground.jpg

I can’t figure this out!

Thanks for any kind of help!

Matyas