ngSemantic
ngSemantic copied to clipboard
sm-select model binding doesn't work
trafficstars
To make sure, I have taken the example from the documentation you provide;
<sm-select
[options]="{direction: 'upward'}"
[(model)]="gender" placeholder="Select gender..."
class="fluid">
<option value="m"><i class="icon male"></i> Male</option>
<option value="f"><i class="icon female"></i> Female</option>
</sm-select>
Yet gender in my component remains undefined after a selection has been made in the sm-select component.
I'm having the opposite problem. If I clean the selected items array in the controller, the view doesn't update and items remain selected.