You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the following, the model gets updated when entering text in the input box but the input box contents are never updated either with an initial value or when the model is changed later.
I haven't looked at the other src code enough -- nor do I have enough experience with angular-- to offer suggestions of a proper fix, but it's fairly evident in looking at the source code for input that "model" was never wired anywhere in the markup. None of the other source code utilizes ngModel, but manually adding [(ngModel)]="model" to my local source .js was the only way I was able to get this to work as I would expect.
The code for 'select' uses model as an input as well, but handles the incoming model via JQuery to set the initially selected value. Perhaps that was the original line of thought here as well?
With the following, the model gets updated when entering text in the input box but the input box contents are never updated either with an initial value or when the model is changed later.
VIEW:
<sm-input type="text" [(model)]="test" class="left labeled fluid" label="Test"></sm-input>
CODE:
this.test = 'Hello';
The text was updated successfully, but these errors were encountered: