Load file from www folder $http


#1

I need to have some language pack files in my app.
When testing with ionic serve $http loads files without problem but when on device there is a error.
I guess since there is no web server when running on device that I need different approach.
I’m trying to use cordova file plugin but no luck.
Is there any snippet showing how to do such thing ?

Thanks


#2

My mistake. Used /folder/file instead of folder/file to get it work on phone.