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>