vendredi 18 août 2017

How to use chunk with angular in blade laravel

I want to use chunk with angular and laravel blade. to split loop with two column how can i use it with angular??

i try this code:

<tr dir-paginate="employee in allstfs|orderBy:sortKey:reverse|filter:search|itemsPerPage:itemsPerPage"
                    current-page="currentPage" style="border-bottom: solid 1px #ccc">

  <td>
         <table width="100%" border="1">
                 <tr>
                      <td rowspan="7" class="imgtd">
                            <img class="img-circle" src="/@">

                      </td>
                 </tr>
                 <tr>
                      <td class="titletd">@ @ </td>
                </tr>
                <tr>
                      <td>@</td>
                </tr>
                <tr>
                      <td>@</td>
                </tr>
                <tr>
                     <td>@</td>
                </tr>
                <tr>
                     <td>@</td>
                </tr>
                <tr>
                     <td>@</td>
                </tr>    
        </table>
  </td>

i want to use chunk to loop with two column like this code in blade laravel:

<table width="100%" cellpadding="15px">
                @foreach($para->chunk(2) as $chunk)
                    <tr style="border-bottom: solid #EEEEEE 1px;">
                        @foreach($chunk as $value)
                           ------
                        @endforeach
                    </tr>
                @endforeach

            </table>

How can i use chunk with angular??



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2x9VZy1
via IFTTT

Aucun commentaire:

Enregistrer un commentaire