Skip to content

Commit 2976131

Browse files
2 parents 2b264c9 + 9c246b0 commit 2976131

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

app/modal/modal-dialog.component.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ class ModalContent {
2727
}
2828

2929
const TEMPLATE = `
30-
<GridLayout rows="*, auto" modal-dialog-host>
30+
<GridLayout rows="auto, auto, *" modal-dialog-host>
3131
<Button text="show component" (tap)="showModal()"></Button>
32+
<Button text="show component (async)" (tap)="showModalAsync()" row="1"></Button>
3233
33-
<Label [text]="'RESULT: ' + result" row="1" margin="12"></Label>
34+
<Label [text]="'RESULT: ' + result" row="2" margin="12"></Label>
3435
</GridLayout>
3536
`;
3637

@@ -55,6 +56,12 @@ export class ModalTest {
5556
this.result = res || "empty result";
5657
})
5758
}
59+
60+
public showModalAsync() {
61+
setTimeout(() => {
62+
this.showModal()
63+
}, 10);
64+
}
5865
}
5966

6067
@Component({
@@ -79,4 +86,10 @@ export class ModalTestWithPushStrategy {
7986
this.result = res || "empty result";
8087
})
8188
}
89+
90+
public showModalAsync() {
91+
setTimeout(() => {
92+
this.showModal()
93+
}, 10);
94+
}
8295
}

0 commit comments

Comments
 (0)