@mgleria wrote:
Hi there!
I was trying to deploy a really dummy app (based on blank ionic template) in my device (Chinese tablet 7’’, Android 4.4.2). The application only has a home that shows an image as a background. Nothing else, as if it were a wallpaper.
After run cordova run android command, the application started and the debug console showed the following error message: “Uncaught SyntaxError: Unexpected identifier” related to the following line in main.js file:selector: 'page-home',template:/*ion-inline-start:"/ProjectFolder/src/pages/home/home.html"*/`<ion-header>\n\n</ion-header>\n\n<ion-content>\n <div class="bg"></div>\n</ion-content> \n`/*ion-inline-end:"/ProjectFolder/src/pages/home/home.html"*/
After a litle research I realized that was a problem of escaping characters; ionic placed the character ` locking up the html template, when in reality the corresponding character was '. In fact, when I changed that in two lines of the main.js file, the application was shown in the same way that it was shown running the command ionic serve
Does anyone know any explanation for this? Am I doing something wrong or passing something by?
Posts: 1
Participants: 1