mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix($ionicModal): do not inherit has-header etc from parent scope
Closes #1191
This commit is contained in:
9
js/angular/service/modal.js
vendored
9
js/angular/service/modal.js
vendored
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user