jquery - How to use chunk with AngularJS in blade laravel? -
i want use chunk angularjs , laravel blade. split loop 2 column. how can use angularjs?
i try 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="{{url::to('src/img/staff_images')}}/@{{employee.picture}}"> </td> </tr> <tr> <td class="titletd">@{{employee.fname}} @{{employee.lname}} </td> </tr> <tr> <td>@{{employee.fname}}</td> </tr> <tr> <td>@{{employee.lname}}</td> </tr> <tr> <td>@{{employee.sex}}</td> </tr> <tr> <td>@{{employee.dob}}</td> </tr> <tr> <td>@{{employee.position}}</td> </tr> </table> </td>
i want use chunk loop 2 column code in blade laravel:
<table width="100%" cellpadding="15px"> @foreach($para->chunk(2) $chunk) <tr style="border-bottom: solid #eeeeee 1px;"> @foreach($chunk $value) ------ @endforeach </tr> @endforeach </table>
how can use chunk angularjs?
Comments
Post a Comment