string interpolation in angular 2 and it's dynamicity
问题 In Angular2, why if i put a property in a simple view, like this: <span>{{allowServer}}</span> it change whenever its value change on its .ts file, and if i put it like this: <button class="btn btn-primary" disabled={{allowServer}} >server</button> the button doesn't get the new value disabled? So, what is the rule for which I have to use interpolation instead of binding syntax? [disabled]=allowServer 回答1: [prop]="value" is for object binding to properties (@Input() of an Angular component or