I am creating an app using Ionic.
I have a directive, Item. This directive works just fine when running the application in the browser. However, when running the application compiled on my iPhone 5C with iOS7, the directive is not showing up.
If I copy the HTML template of the directive and drops it onto the page, it works just fine.
Here is the directive:
ItemModule.directive('item', ['$rootScope', function ($rootScope) {
return {
restrict: 'E',
scope: {
item: '=',
},
transclude: true,
templateUrl: 'js/modules/items/directives/templates/item.html',
link: function (scope, iElement, iAttrs) {
}
};
}])
What am I doing wrong?