2
Hello, let’s assume I have an object that has the following values
var json = [
{"nome":"Coisa A", qtd:2},
{"nome":"Coisa A", qtd:3},
{"nome":"Coisa B", qtd:5},
{"nome":"Coisa B", qtd:7}
]
Well, I can return these values to display in a list with the angular, I wanted to display in html like this, adding the "Qtd" and keeping only one name as below.
Coisa A possui 5
Coisa B possui 12
Do you have control over the generation of this json? Ideally it will already come ready to display, although it is not difficult to do in js.
– bfavaretto
Yes, but I’m using the same bind for two places on the page so I can’t already bring with this filter. I have to apply only when displaying to a list in html
– joao paulo santos almeida