1
I would like how I can filter this JSON by COD and bring only the chosen one.
I am bringing the value of the code by the url and would like to filter only to display the name of the chosen option.
NOTE: The user will not enter the value because it was in a list on the previous screen in which he chose.
I am using Angularjs
Example:
{"COD":"15","NOME":"14.01 Histórico Escolar."},
{"COD":"16","NOME":"14.02 Histórico Escolar - Regime de Urgência"}
Then, I would like to filter only through the COD column and bring and present on the screen the NAME.
Yes, but I get the COD by the url, that is, the user has already chosen the item in the list so I would like to filter it to appear in the new page the selected item.
– Max Rogério
You treat this URL as? PHP?
– Thiago Santos
No, I am using Ionic and angular, in case it would be the following process: The user has a list of options, he chooses one, and goes to another view, and in this other view wanted to just show the name of the chosen option. But based on your answer I managed to solve the problem here. Thank you very much! :)
– Max Rogério