I am confused as to the difference between these two ways of data binding.
In my component I have the property: stringInterpolation = This is string interpolation;
In my html I bind that property to the value attribute in an input: <input type="text" value="{{stringInterpolation}}">
I have read that I can also bind the property in another way: <input type="text" [value]="stringInterpolation"> which outputs the same value inside the textbox.
Here is the inspection from dev tools of the two inputs:
<input _ngcontent-qdj-2="" type="text" ng-reflect-value="This is string interpolation">
and
<input _ngcontent-qdj-2="" type="text" ng-reflect-value="This is string interpolation">
They are both the same.
My question is: How is value="{{stringInterpolation}} different to [value]="stringInterpolation"?