Angular 2: Difference between revisions

Jump to navigation Jump to search
no edit summary
add a block about variable
No edit summary
Line 39: Line 39:
</syntaxhighlight>
</syntaxhighlight>


Adding a variable.
Adding a variable. Adding a ''property'' is new to ES5: "name: string;". Double brackets <nowiki>{{</nowiki> are called "template-tags" (or "mustache tags").


<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">

Navigation menu