0
I’m working with Angular 1, Angularfire and Firebase. I made the following call that returns the following data:
var _refLista = firebase.database().ref()
$scope.lista = $firebaseObject(_refLista.child('listas').child(idLista))
console.log($scope.lista);
In the console the data appears structured as follows:
{
nome: "nome da lista",
usuarios: [0:"OkJiuyhTfrdgF", 1:"kjIugYHTkiuh"]
}
In the view I can print out everything by certifying, example:
{{ lista.nome }}
{{ lista.usuarios }}
But when I try to access $Scope.lista.users in the controller the result is always Undefined.
Can anyone help?
Thank you. Solved.
– David Coelho