Skip to content

Instantly share code, notes, and snippets.

@sankita15
Created June 6, 2022 17:13
Show Gist options
  • Save sankita15/1ad6ba6f62354fc0a0476d759034e78a to your computer and use it in GitHub Desktop.
Save sankita15/1ad6ba6f62354fc0a0476d759034e78a to your computer and use it in GitHub Desktop.
methods: {
loadSecondDropdownOptions() {
this.secondDropdownValue = "";
this.secondDropdownOptions = this.response.fruits.find(fruit => fruit.name === this.firstDropdownValue)?.weights;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment