简体   繁体   中英

AngularJS - Custom filter with specific JSON object

Example jsfiddle

In my example i pretend that professionalarea.description in my json is my categories filter and not the pants. The problem is when I try to insert professionalarea.description doesn't work. I don't understand why Because if I insert the other threads of my json it works fine but when I try to make the way to the professionalarea.description doesn't work.

JSON:

{
            "Categoria": "Informática",
            "Title": "Consultor DBA Oracle",
            "Empresa": "Infosistemas",
            "Data": "2016-07-11",
            "id": "1",
            "Localidade": "Lisboa", 
            "professionalarea": {
                "idAreaProfissional":1,
                "description":"IT"
            },
            "Horario": "Estágio Profissional"
    }

It seems to work fine. Is there something I am missing here??

http://jsfiddle.net/rzgWr/841/

Using this seems to work fine

{{player.professionalarea.description}}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM