Angular · Junior · Question 9 of 75

What does {{ user.name }} do in a template?

Explanation

Interpolation renders the expression as text (it is escaped, so it is safe from XSS). For HTML content you would bind [innerHTML], which Angular sanitizes.

Further reading

Problem with a question

Angular · Junior · question 9

Test yourself

Take the Angular · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz