ngModel
Use ngModel
to bind the value of the select component
to a variable in your component class. This way you can set a default
selection, programatically update the selection, and keep track of the
current selection.
Selected options: {{selectedCharacters}}