1
How could I do to bring everything in the view and filter in a combobox by the class option?
$scope.dadosUserAndTurma = [
{
idUser:20,
nome: "Carlos",
turmas: [
{turma: "Turma 1", value: 1},
{turma: "Turma 2", value: 2},
{turma: "Turma 3", value: 3}
]
},
{
idUser:21,
nome: "Luiz",
turmas: [
{turma: "Turma 1", value: 1},
{turma: "Turma 3", value: 3}
]
},
{
idUser:22,
nome: "Priscilla",
turmas: [
{turma: "Turma 2", value: 1}
]
} ,
{
idUser:24,
nome: "Pedro",
turmas: []
}
];
}
Example in JSFIDDLE