Angular 2: Difference between revisions

Jump to navigation Jump to search
add expression
No edit summary
add expression
Line 39: Line 39:
</syntaxhighlight>
</syntaxhighlight>


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


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

Navigation menu