0 day streak
javascript / beginner
Snippet

Interpolation for Dynamic Text

Interpolation is the most basic way to display dynamic data from your TypeScript class into your HTML template using double curly braces.

snippet.js
javascript
1
<p>Welcome back, {{ username }}!</p>
angular
Breakdown
1
{{ username }}
The double curly braces evaluate the expression 'username' and render its value as text.