Skip to content

Commit

Permalink
fix($ionicModal): do not inherit has-header etc from parent scope
Browse files Browse the repository at this point in the history
Closes #1191
  • Loading branch information
ajoslin committed Apr 29, 2014
1 parent 3a68a2c commit 6c0c835
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/angular/service/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('<ion-modal>' + templateString + '</ion-modal>')(scope);

Expand Down

0 comments on commit 6c0c835

Please sign in to comment.