[英]AngularJS - Custom filter with specific JSON object
In my example i pretend that professionalarea.description in my json is my categories filter and not the pants. 在我的例子中,我假装我的json中的professionalarea.description是我的类别过滤器而不是裤子。 The problem is when I try to insert professionalarea.description doesn't work. 问题是当我尝试插入professionalarea.description不起作用。 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的其他线程它工作正常,但当我尝试通往professionalarea.description的方式不起作用。
JSON: 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/ http://jsfiddle.net/rzgWr/841/
Using this seems to work fine 使用它似乎工作正常
{{player.professionalarea.description}}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.