mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(angular): modal and popover support
This commit is contained in:
@@ -33,7 +33,7 @@ export class Modal implements OverlayInterface {
|
||||
@Prop({ context: 'config' }) config: Config;
|
||||
|
||||
@Prop() overlayId: number;
|
||||
@Prop({ mutable: true }) delegate: FrameworkDelegate;
|
||||
@Prop() delegate: FrameworkDelegate;
|
||||
|
||||
/**
|
||||
* The color to use from your Sass `$colors` map.
|
||||
@@ -175,7 +175,7 @@ export class Modal implements OverlayInterface {
|
||||
...getClassMap(this.cssClass),
|
||||
'ion-page': true
|
||||
};
|
||||
return attachComponent(container, this.component, classes, data)
|
||||
return attachComponent(this.delegate, container, this.component, classes, data)
|
||||
.then(el => this.usersElement = el)
|
||||
.then(() => present(this, 'modalEnter', iosEnterAnimation, mdEnterAnimation, undefined));
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ export class Popover implements OverlayInterface {
|
||||
|
||||
@Prop({ connect: 'ion-animation-controller' }) animationCtrl: HTMLIonAnimationControllerElement;
|
||||
@Prop({ context: 'config' }) config: Config;
|
||||
@Prop({ mutable: true }) delegate: FrameworkDelegate;
|
||||
@Prop() delegate: FrameworkDelegate;
|
||||
@Prop() overlayId: number;
|
||||
|
||||
/**
|
||||
@@ -185,7 +185,7 @@ export class Popover implements OverlayInterface {
|
||||
...getClassMap(this.cssClass),
|
||||
'popover-viewport': true
|
||||
};
|
||||
return attachComponent(container, this.component, classes, data)
|
||||
return attachComponent(this.delegate, container, this.component, classes, data)
|
||||
.then(el => this.usersElement = el)
|
||||
.then(() => present(this, 'popoverEnter', iosEnterAnimation, mdEnterAnimation, this.ev));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user