I have two tables in firebase Departamentos
-> parent and Ciudades
-> child. When I'm showing the cities in the ng-repeat
view, I need replace the $id
Departamento
to the name in the Departamentos
table. How can I do it?
Database:
View:
<tr ng-repeat="obj in ciudades | filter:search">
<td>{{obj.idItem}}</td>
<td>{{obj.nombreCiudad}}</td>
<td>{{obj.departamentoEciudad }}</td> <-- replace the id to the name located in 'departamentos' table
</tr>