Was having an issue with ionicModal not appearing when building with Xcode in iOS Simulator


I was having an issue with Ionic framework - specifically, ionicModal was not appearing in the iOS simulator when built with Xcode. Any other build ionic emulate ios for instance, would render the modals properly.

The issue was the template URL being absolute rather than relative.

I was using the string:

templateUrl: '/templates/modalLogin.html'

Which should have been:

templateUrl: 'templates/modalLogin.html'

The codes were actually in:


Hope this helps anyone having issues with templates or modals!