Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Modal not showing on device or emulator (but showing/hiding in browser)

$
0
0

so I dont know if this is already an know thing but i figured it out (probably known to everyone but me =(.... to use the modal like this you must add "/www/" infront of where the file is on your computer. in my case the modal code should be "$ionicModal.fromTemplateUrl('../www/templates/myPage.html', {"

not just "$ionicModal.fromTemplateUrl('../templates/myPage.html', {"

this means that if you change it by adding the "/www/" it will NOT work during testing in the browser just change it to test on a device or emulator something happens to the file directory when it is packaged up....like i said i bet everyone knows this but just in case there you go


Viewing all articles
Browse latest Browse all 228595

Trending Articles