Interpolation (Also
called sting interpolation) Passing data from Component to View Template
String interpolation only used to bind
some static data. We cannot use any type of conditional statement or ternary
operator. We can use a method inside a string interpolation.
Use property binding when you are
making some changes at DOM level at run time. You can use conditional
statements and ternary operators with property binding.
Interpolation works with read only string data. For example,
when we want concatenate some data.
No comments:
Post a Comment