質問編集履歴
2
タグを更新しました。
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
コードを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,4 +9,33 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
** 何か良い方法があれば教えて欲しいです!!
|
12
|
-
よろしくお願いします!! **
|
12
|
+
よろしくお願いします!! **
|
13
|
+
|
14
|
+
|
15
|
+
### コード
|
16
|
+
page抜粋
|
17
|
+
```html
|
18
|
+
{{modalActionDisplay}}
|
19
|
+
```
|
20
|
+
```typescript
|
21
|
+
async presentModal() {
|
22
|
+
const modal = await this.modalController.create({
|
23
|
+
component: ModalPage,
|
24
|
+
cssClass: 'my-custom-class'
|
25
|
+
});
|
26
|
+
await modal.present();
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
ngOnInit(){
|
31
|
+
this.storage.get('test').then(async (val) => {
|
32
|
+
this.modalActionDisplay = val
|
33
|
+
}
|
34
|
+
}
|
35
|
+
```
|
36
|
+
|
37
|
+
modal page 抜粋
|
38
|
+
```typescript
|
39
|
+
this.storage.set('test',true)
|
40
|
+
modal.dismiess();
|
41
|
+
```
|