I'm creating an application using AngularJs
and skeleton
, I have the layout mounted, now I'm in the part of making it dynamic, but I'm facing a basic problem. I have the following array coming from the backend:
[
0 => [
'title' => 'Um titulo aqui',
'slug' => 'Aqui-o-slug',
'categoria_id' => 17
],
1 => [
'title' => 'Um titulo aqui',
'slug' => 'Aqui-o-slug',
'categoria_id' => 12
],
2 => [
'title' => 'Um titulo aqui',
'slug' => 'Aqui-o-slug',
'categoria_id' => 4
]
]
The layout holds 4 elements of the array, every 4 I have to put inside a new "row" to not break the layout. What I want to know is what way I could do this, what functions and etc. I want to leave the code as simple as possible.
Note: Use php
on the backend.