diff --git a/js/angular/service/modal.js b/js/angular/service/modal.js index 5bc5943f78..9d8c7e99e7 100644 --- a/js/angular/service/modal.js +++ b/js/angular/service/modal.js @@ -181,6 +181,15 @@ function($rootScope, $document, $compile, $timeout, $ionicPlatform, $ionicTempla // Create a new scope for the modal var scope = options.scope && options.scope.$new() || $rootScope.$new(true); + angular.extend(scope, { + $hasHeader: false, + $hasSubheader: false, + $hasFooter: false, + $hasSubfooter: false, + $hasTabs: false, + $hasTabsTop: false + }); + // Compile the template var element = $compile('' + templateString + '')(scope);