Last active
October 14, 2021 13:30
-
-
Save yarigpopov/c33c3cdc386130ebef719257ce302f42 to your computer and use it in GitHub Desktop.
This file contains 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
import Component from '@glimmer/component'; | |
import { tracked } from '@glimmer/tracking'; | |
import { action } from '@ember/object'; | |
export default class RadioInputFormFlexible extends Component { | |
@tracked currentValue = null; | |
@action | |
onChange(value) { | |
this.currentValue = value; | |
} | |
@action | |
onSubmit() { | |
window.alert(this.currentValue); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment