Skip to content

Commit b470742

Browse files
author
Dave Syer
committed
Use [] in template to avoid vscode errors
1 parent 2c1762a commit b470742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ <h1>
33
Welcome {{title}}!
44
</h1>
55
<div class="container">
6-
<p>Id: <span>{{data.id}}</span></p>
7-
<p>Message: <span>{{data.content}}</span></p>
6+
<p>Id: <span>{{data['id']}}</span></p>
7+
<p>Message: <span>{{data['content']}}</span></p>
88
</div>
99
</div>
1010

0 commit comments

Comments
 (0)