Custom directive not function on phone


#1

Hello.

I’m trying to use my own directives that are similar to ng-include. An example of one of my directives is:

app.directive(‘headerProfile’, function() {
return {
restrict: ‘E’,
templateUrl: ‘…/templates/includes/headerProfile.html’
};
});

and i call this from html:

But my problem is that when I use “ionic serve” and see my app on chrome, I can see perfectly all the page, but when I use “ionic run” and open the project in my phone, not render the html from the directive.

It’s very strange. I think that it’s all ok because it render on my browser, but not function in my phone.

Could you help me?

Thanks,