Programming Phoenix LiveView: error with :let, (ch 4, p 237 epub)

The text says: "The :let directive determines the variable we’ll use to refer to the form”
but the form looks like:

<.simple_form
​​ ​      for={@form}
​​ ​      id="product-form"
​​ ​      phx-target={@myself}
​​ ​      phx-change="validate"​​
 ​      phx-submit="save"​​ ​    >​

with no :let directive.

1 Like