The problem is that value="{{segment.name}}" don’t change the preview variable when i click on the segement button.
The result is that the content of the segment is not displayed.
As workaround I add the click handler wich changes the preview variable and the content becomes visible.
Yes it does. I dropped that code directly into a sandbox project and the preview value changed and the {{segment.name}} changed with it. Whatever is going on is outside the scope of what you have posted here.
I don’t know if you have already solved this problem but I came across with it today. And I found that you may use the element with some mistakes. To asign value attribute in a ngFor loop, you should write like [value]="segment.name" .