Hi,
I’m new with Ionic, but I know something about Angular. I have a problem when I try to use my own directives and deploy in my Phone. All the tags that I create with a directive run ok in my computer browser, but when i deploy in my phone, the application not render all the code that I have in directives.
My directives are similar to the function ng-include. For example, one of my directives is:
Can you look at the console logs that are in platforms/ios/cordova/console.log or platforms/android/cordova/console.log to see what errors are being logged? That file should show you the logs captured about the app.
One thing to note, on the phone or emulator files are served differently than if you use ionic serve. On your machine with the serve command, files are sent over the http:// protocol, where on the phone it is actually using the file:// protocol. There might be an issue with how you’re referencing the files that could cause the file not to be found over file://.