質問編集履歴
3
内容修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -114,4 +114,4 @@
|
|
114
114
|
|
115
115
|
|
116
116
|
|
117
|
-
|
117
|
+
ご教授お願いいたします。
|
2
ソースコードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
### 該当のソースコード
|
16
16
|
|
17
|
-
|
17
|
+
template.html
|
18
18
|
|
19
19
|
```html
|
20
20
|
|
@@ -32,39 +32,65 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
+
AppComponent.ts
|
36
|
+
|
35
37
|
```typescript
|
36
38
|
|
37
39
|
private types: Object;
|
38
40
|
|
39
41
|
|
40
42
|
|
41
|
-
const
|
43
|
+
export class AppComponent implements OnInit {
|
42
44
|
|
43
|
-
{
|
44
45
|
|
45
|
-
name:'type01',
|
46
46
|
|
47
|
-
|
47
|
+
const SEARCH_TYPE=[
|
48
48
|
|
49
|
-
|
49
|
+
{
|
50
50
|
|
51
|
-
|
51
|
+
name:'type01',
|
52
52
|
|
53
|
-
|
53
|
+
id:0
|
54
54
|
|
55
|
-
|
55
|
+
},
|
56
56
|
|
57
|
-
|
57
|
+
{
|
58
58
|
|
59
|
-
|
59
|
+
name:'type02',
|
60
60
|
|
61
|
-
|
61
|
+
id:1
|
62
62
|
|
63
|
+
},
|
64
|
+
|
65
|
+
{
|
66
|
+
|
67
|
+
name:'type03',
|
68
|
+
|
63
|
-
id:2
|
69
|
+
id:2
|
70
|
+
|
71
|
+
}
|
72
|
+
|
73
|
+
];
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
constructor() {
|
78
|
+
|
79
|
+
types = getTypes();
|
64
80
|
|
65
81
|
}
|
66
82
|
|
83
|
+
|
84
|
+
|
85
|
+
getTypes() {
|
86
|
+
|
87
|
+
return SEARCH_TYPE;
|
88
|
+
|
67
|
-
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
}
|
68
94
|
|
69
95
|
```
|
70
96
|
|
1
タイトルの改善
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Angularでselectのデフォルト値を設定する
|
1
|
+
Angularでプルダウン(select)のデフォルト値を設定する
|
test
CHANGED
File without changes
|