Hi!
Have a really simple question that's driving me nuts! I got it to work
once, but managed to make the code disappear...
I have input field and a drop down list. When the user writes text in the
input field and chooses value from list, they are added to an object, AND
when the user navigates around the page and returns back to this page, the
input and value chosen are visible. As said, the ngmodel for keyword works
fine, and it still exists when returning back to page. But how do I
implement the model to the dropdown list, so it works as well? I've tried
sooo many different things, but can't do it anymore ;)
This works fine:
<input required [(ngModel)]="keyword">
Need help here!
<select>
<option *ngFor="#v of possibleValues">{{v}}</option>
</select>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.