Above Is my Data Structure in Firebase's Firestore db. I can successfully pull data and put it into the ng2 smart table using these settings:
export const userTableSettings = {
delete: {
confirmDelete: true,
deleteButtonContent: '<i class="ft-x danger font-medium-1 mr-2"></i>'
},
add: {
confirmCreate: true,
},
edit: {
confirmSave: true,
editButtonContent: '<i class="ft-edit-2 info font-medium-1 mr-2"></i>'
},
firstName: {
title: 'Full Name',
},
lastName: {
title: 'User Name',
},
email: {
title: 'Email',
},
},
attr: {
class: 'table table-responsive'
},
};
but when I add a place for roles
roles: {
title: 'Role',
},
the output is
I want to be able to display the users role or roles if they have more than one, and be able to update them from the table.