File tree 1 file changed +15
-2
lines changed 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,11 @@ class ModalContent {
27
27
}
28
28
29
29
const TEMPLATE = `
30
- <GridLayout rows="* , auto" modal-dialog-host>
30
+ <GridLayout rows="auto , auto, * " modal-dialog-host>
31
31
<Button text="show component" (tap)="showModal()"></Button>
32
+ <Button text="show component (async)" (tap)="showModalAsync()" row="1"></Button>
32
33
33
- <Label [text]="'RESULT: ' + result" row="1 " margin="12"></Label>
34
+ <Label [text]="'RESULT: ' + result" row="2 " margin="12"></Label>
34
35
</GridLayout>
35
36
` ;
36
37
@@ -55,6 +56,12 @@ export class ModalTest {
55
56
this . result = res || "empty result" ;
56
57
} )
57
58
}
59
+
60
+ public showModalAsync ( ) {
61
+ setTimeout ( ( ) => {
62
+ this . showModal ( )
63
+ } , 10 ) ;
64
+ }
58
65
}
59
66
60
67
@Component ( {
@@ -79,4 +86,10 @@ export class ModalTestWithPushStrategy {
79
86
this . result = res || "empty result" ;
80
87
} )
81
88
}
89
+
90
+ public showModalAsync ( ) {
91
+ setTimeout ( ( ) => {
92
+ this . showModal ( )
93
+ } , 10 ) ;
94
+ }
82
95
}
You can’t perform that action at this time.
0 commit comments