Difference between interpolation and property binding

Angular evaluates all expressions in double curly braces, converts the expression results to strings, and concatenates them with neighboring literal strings. Finally, it assigns this composite interpolated result to an element or directive/component property. — from https://angular.io/docs/ts/latest/guide/template-syntax.html#!#interpolation

Property binding does not convert the expression result to a string.

So if you need to bind something other than a string to your directive/component property, you must use property binding.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)