I am working on color picker where i need to select 10 colors , I need to display the value as soon as the color picker select. It is updating the value when we are selecting with for loop but it is not updating the value when we directly print value. Please check below link - https://stackblitz.com/edit/github-puzsp8-kxtfe1?file=src/app/app.component.html
I might have missed something. But not able to get.
Lets assume colors is Array object
and <span>{{colors}}</span> this will not change value
<span *ngFor="let c of colors">{{c}}</span> this one is updating correctly .
Why it is not updating if I print only colors . Thanks
<span>{{colors | json}}</span>seems to be working. Looks like angular issue> Actually in earlier version if you binded an object, it would simply showup as [object Object]. recently they had added this feature where they pretty print the object. You should never need to bind an object like how you are doing