Created
September 18, 2020 04:40
-
-
Save jcamilom/0cba2ded0c2d397ec4b5fe107980c900 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
writeValue(values: any[]): void { | |
this.selectedValues = []; | |
values = values || []; | |
values.forEach(selectedValue => { | |
const selectedOption = this.options.find(v => v.value === selectedValue); | |
selectedOption.control.setValue(true); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment