Closed bachras closed 6 years ago
@bachras thanks for using my plugin about the issue you made i think you mixed the binding with the vanilla way you can see below i made some changes https://play.nativescript.org/?template=play-ng&id=lx6dNk&v=6
the right way of binding is this
<FilterSelect render="label" height="100%" [selected]="selected" [items]="countries" (change)="selectCountry($event)" hint="Please select some items" modal_title="item"
search_param="name" primary_key="code">
</FilterSelect>
but you was doing it with {{ }} and this way is not working with angular
<FilterSelect height="100%" render="label" items="{{countries}}" (change)="selectCountry($event)"
search_param="name" primary_key="code"
selected="{{selected}}">
</FilterSelect>
thanks and don't forget to start the plugin 👍 😃
Thanks for your solution. But while am trying to set the value from the constructor or the NgOninit. the value cannot be bind. please help to resolve this issue. Also how to set a value pro-grammatically in angular.
https://play.nativescript.org/?template=play-ng&id=L1ulE5&v=2
Hi,
thank you for brilliant plugin, everthing works as expected, but I am strugling to set previously selected value. I followed examples but I am keep getting this error:
I created playground example to replicate the problem: https://play.nativescript.org/?template=play-ng&id=lx6dNk&v=3
Maybe I missed something. Any help/advice is appreciated. Thank you