Return to site

What is the interpolation? Say waht is "<h1>{{ title }}</h1>"?

· angular

The interpolation is an alternative syntax to property binding.

Consider interpolation as a friendly syntax.

To use interpolation, we use double curly braces: {{ myVar}}.

The text between the curly braces is generally the name of the component property.

Then, Angular replaces this name with the value of the related component property.

Use cases:

=>The interpolation is an alternative syntax to property binding which is more efficient for just data display in your template.

All Posts
×

Almost done…

We just sent you an email. Please click the link in the email to confirm your subscription!

OK