我正在研究角度4应用程序加上rxjs 5.x。
json数据结构如下。
请有人告诉我如何让rxjs运营商的班级ID不等于1的所有学生名单。
谢谢
[
{
"id": 1,
"class": {
"id": 1,
"name": "English"
},
"students": [
{
"student": {
"id": 101,
"name": "hi101",
"email": "hi101@marr.com.au"
}
},
{
"student": {
"id": 102,
"name": "hi101",
"email": "hi101@marr.com.au"
}
}
]
},
{
"id": 2,
"class": {
"id": 2,
"name": "Physics"
},
"students": [
{
"student": {
"id": 201,
"name": "ph201",
"email": "ph201@marr.com.au"
}
},
{
"student": {
"id": 202,
"name": "ph202",
"email": "ph202@marr.com.au"
}
}
]
},
{
"id": 3,
"class": {
"id": 3,
"name": "Maths"
},
"students": [
{
"student": {
"id": 301,
"name": "m301",
"email": "m301@marr.com.au"
}
},
{
"student": {
"id": 302,
"name": "m302",
"email": "m302@marr.com.au"
}
}
]
}
]