I have a form like:
<!-- myTemplate.html -->
<form name="myForm">
...
</form>
And the controller like:
import template from './myTemplate.html';
export const MyForm = {
template,
controller: class MyForm {
...
}
}
When I try to access this.myForm in a controller method I get that it's undefined. I've also tried to name the form with $ctrl.myForm in the template but with no luck (base on the best answer in this question on SO)
I'm using webpack4 to compile.
I have a form like:
And the controller like:
When I try to access
this.myFormin a controller method I get that it'sundefined. I've also tried to name the form with$ctrl.myFormin the template but with no luck (base on the best answer in this question on SO)I'm using
webpack4to compile.