jeudi 26 mars 2020

Ember Octane upgrade: how to handle eslint error no-action

This is related to: Ember Octane Upgrade How to pass values from component to controller

In the ../templates/change-password.hbs file, I am receiving the following eslint error:

Do not use action as . Instead, use the on modifier and fn helper. no-action

Code:

<Clients::ChangePasswordForm @chgpwd= @changePassword= @errors= />

The accepted answer instructed me to use that syntax. Is there a different way I should be handling this or should I ignore the error?




Aucun commentaire:

Enregistrer un commentaire