我有一个包含应用程序的索引,每个应用程序都有一个文档对象数组。
我想获取所有不包含document_type 6和4的应用程序。
this.userService.register(this.registerForm.value)
.pipe(map((res: Response) => res.json()))
.subscribe(
data => {
this.alertService.success('Registration successful', true);
this.router.navigate(['/login']);
},
(error:HttpErrorResponse) => {
let errorPayload = JSON.parse(error.message);
//ToDo: apply your handling logic e.g.:
//console.log(errorPayload[0].description
console.log(error.error);
});
这不会返回所需的应用程序。仅包含document_type 6而不是4的文档的应用程序不会返回