Outlet inside each


#1

I have a table, and for each row I want to display the full data of the selected row inside the table, but it’s showing the full data for all the rows in the table, i just want to the selected one.

<table>
  <thead>
  <tr>
    <td>Nombre</td>
    <td>Pais</td>
    <td>Autor</td>
    <td>Director</td>
  </tr>
  </thead>
    <tbody>
      {{#each paginatedContent}}
      <tr>
        <td>
          {{#link-to 'pelicula' this}}
            {{nombre}}
          {{/link-to}}
        </td>
        <td>
          {{pais}}
        </td>
        <td>
          {{autor}}
        </td>
        <td>
          {{director}}
        </td>
        </tr>
        <tr>
          <td colspan='4'>{{outlet}}</td>
        </tr>
      {{/each}}
    </tbody>
</table>

Is this possible?


#2

Not sure what you are trying to achieve here.

You want to have the route content repeated for each row of the table? First it won’t be repeated as, I believe, only 1 outlet is bound to the route.

Not sure where you are going with this, but I think you should look at {{partial}} and {{render}} they might be better suited for this.