Data Binding
Nested Properties
gameStats: GameStats = { score: 0, lines: 0, level: 1 };
<p> Score: {{ gameStats.score }} </p>
<p> Lines: {{ gameStats.lines }} </p>
<p> Level: {{ gameStats.level }} </p>
gameStats: GameStats = { score: 0, lines: 0, level: 1 };
<p> Score: {{ gameStats.score }} </p>
<p> Lines: {{ gameStats.lines }} </p>
<p> Level: {{ gameStats.level }} </p>