I have two lists, namely the persons
and animals
, which I am displaying using ng-repeat
. My goal is to present these two lists in a single table with a heading. Below is an example of how I envision presenting the data. I have attempted to achieve this using ng-show="$first"
, but the outcome did not meet my expectations.
https://i.sstatic.net/zGZYo.png
ID | BIRTHDAY | NAME | |
---|---|---|---|
PERSONS | {{ ps.id }} | {{ ps.birthday | date: 'dd.MM.yyyy'}} | {{ ps.name }} |
ANIMALS | {{ an.id }} | {{ an.birthday | date: 'dd.MM.yyyy'}} | {{ an.name }} |