Can you not use a View inside a Component?


#1

Why can’t I use a view like this:

<script type="text/x-handlebars" id="components/submit-form">
      {{#each field in fields}}
        {{#if isEditing}}
          {{view Spark.FieldView config=field}}
        {{else}}
          <h3>{{field.name}}</h3>
        {{/if}}
      {{/each}}
    </script>