fix(angular): modal and popover support

This commit is contained in:
Manu Mtz.-Almeida
2018-03-13 20:53:17 +01:00
parent 6e2ca85b2a
commit 9a0755a268
9 changed files with 80 additions and 50 deletions

View File

@@ -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));
}

View File

@@ -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));
}