質問編集履歴
2
タグを更新しました。
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
1
コードを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -21,3 +21,61 @@
|
|
21
21
|
** 何か良い方法があれば教えて欲しいです!!
|
22
22
|
|
23
23
|
よろしくお願いします!! **
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
### コード
|
30
|
+
|
31
|
+
page抜粋
|
32
|
+
|
33
|
+
```html
|
34
|
+
|
35
|
+
{{modalActionDisplay}}
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
```typescript
|
40
|
+
|
41
|
+
async presentModal() {
|
42
|
+
|
43
|
+
const modal = await this.modalController.create({
|
44
|
+
|
45
|
+
component: ModalPage,
|
46
|
+
|
47
|
+
cssClass: 'my-custom-class'
|
48
|
+
|
49
|
+
});
|
50
|
+
|
51
|
+
await modal.present();
|
52
|
+
|
53
|
+
}
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
ngOnInit(){
|
60
|
+
|
61
|
+
this.storage.get('test').then(async (val) => {
|
62
|
+
|
63
|
+
this.modalActionDisplay = val
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
modal page 抜粋
|
74
|
+
|
75
|
+
```typescript
|
76
|
+
|
77
|
+
this.storage.set('test',true)
|
78
|
+
|
79
|
+
modal.dismiess();
|
80
|
+
|
81
|
+
```
|