0
I’m creating an application using AngularJs
and skeleton
, I have the layout set up, now I’m on the part of making it dynamic, but I’m facing a basic little problem. I have the following array coming from the back-end:
[
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" not to break the layout. What I want to know is which way I could do this, which functions and so on, I want to make the code as simple as possible.
Note: Use php
in the back-end.