[Solved] How to use braces in angular [closed]


You can not use assignment operator, only use numbers or variables.

these curly braces ‘{{ }}’ are said to be an

interpolation

How it can be used?

In your html-template, write it as

X = {{ 4 * 4 }} // X = 16
X = {{ variable * 4 }}
X = {{ variable1 * variable2 }}

these variables are properties of your component class (controller class)

1

solved How to use braces in angular [closed]