I'm currently in the process of developing an app utilizing a combination of the Ionic Framework, Phonegap, and AngularJS.
Within the app, I have a directive called Item. While this directive functions perfectly when testing the application on a browser, I encounter an issue when testing it on my iPhone 5C running iOS7 - the directive fails to display.
Interestingly, if I manually add the HTML template of the directive onto the page, it works flawlessly.
Below is the code snippet for 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) {
}
};
}])
I'm struggling to figure out what I may be overlooking. Any insights on what could be causing this issue?