Say we have this data
todo = { title: 5 };
1) value="todo.title" - an attribute with the name value and the value "todo.title" (string)
2) value="{{todo.title}}" - property with the name value and value "5" ( always a string )
template_parser.ts method _parseAttr 
Therefore, it will not be included as an attribute.

3) [value]="todo.title" - a property with the name value and value 5 (number)
Thus, the difference between these expressions is that the value in the interpolation ( value="{{todo.title}}" ) is always gated , while the binding value of the main property ( [value]="todo.title" ) transmitted as is.
yurzui Oct 08 '16 at 4:33 2016-10-08 04:33
source share