further improving the component interface.
This commit is contained in:
@ -32,9 +32,9 @@
|
||||
$: {
|
||||
// Send events to the state machine based on the validation status
|
||||
if (!($errors.name || $errors.email || $errors.about || $errors.age || $errors.favoriteFood)) {
|
||||
$me.do.machine.send('VALIDATE');
|
||||
$me.do.state.send('VALIDATE');
|
||||
} else {
|
||||
$me.do.machine.send('INVALIDATE');
|
||||
$me.do.state.send('INVALIDATE');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user