質問編集履歴

3

Componentの記載を追記

2018/11/21 01:18

投稿

propg
propg

スコア113

test CHANGED
File without changes
test CHANGED
@@ -33,6 +33,10 @@
33
33
  })
34
34
 
35
35
  export class TestComponent implements OnInit {
36
+
37
+ bbbb;
38
+
39
+
36
40
 
37
41
  private _aaaa: any;
38
42
 
@@ -73,6 +77,10 @@
73
77
  this.patientAttribute = event as VKanjaKensa;
74
78
 
75
79
  });
80
+
81
+
82
+
83
+ this.bbbb = 'テストデータ';
76
84
 
77
85
  }
78
86
 
@@ -166,4 +174,6 @@
166
174
 
167
175
  <div>aaaa={{aaaa}}</div>
168
176
 
177
+ <div>bbbb={{bbbb}}</div>
178
+
169
179
  ```

2

Componentの記載を追記

2018/11/21 01:18

投稿

propg
propg

スコア113

test CHANGED
File without changes
test CHANGED
@@ -22,9 +22,39 @@
22
22
 
23
23
 
24
24
 
25
- aaaa;
25
+ @Component({
26
26
 
27
+ selector: 'app-test',
27
28
 
29
+ templateUrl: './test.component.html',
30
+
31
+ styleUrls: ['./test.component.scss']
32
+
33
+ })
34
+
35
+ export class TestComponent implements OnInit {
36
+
37
+ private _aaaa: any;
38
+
39
+ @Output('aaaa')
40
+
41
+ public get aaaa(): any {
42
+
43
+ return this._aaaa;
44
+
45
+ }
46
+
47
+ public set aaaa(v: any) {
48
+
49
+ if (v) {
50
+
51
+ this._aaaa = v;
52
+
53
+ console.log('aaaa', v);
54
+
55
+ }
56
+
57
+ }
28
58
 
29
59
 
30
60
 

1

テンプレートHTML記載を追加

2018/11/21 01:16

投稿

propg
propg

スコア113

test CHANGED
File without changes
test CHANGED
@@ -126,8 +126,14 @@
126
126
 
127
127
  }
128
128
 
129
+ ```
129
130
 
130
131
 
132
+
133
+ ## テンプレートHTML
134
+
131
- コード
135
+ ```html
136
+
137
+ <div>aaaa={{aaaa}}</div>
132
138
 
133
139
  ```