Angular Nativescript使用表单创建新记录

Angular Nativescript使用表单创建新记录,angular,nativescript,Angular,Nativescript,我正在使用angular应用程序开发Nativescript,在该应用程序中,我创建了一个表单,以便用户能够使用表单添加新记录。应用程序正在使用RESTAPI在数据库上创建新记录。这是我得到的错误 新联系人{ this.contactservices.submitContactthis.postContact.subscribe 结果=>this.router.navigate[/home], error=>console.errorerror } 下面是我如何修复它的,希望这对将来的人有所帮

我正在使用angular应用程序开发Nativescript,在该应用程序中,我创建了一个表单,以便用户能够使用表单添加新记录。应用程序正在使用RESTAPI在数据库上创建新记录。这是我得到的错误

新联系人{ this.contactservices.submitContactthis.postContact.subscribe 结果=>this.router.navigate[/home], error=>console.errorerror }
下面是我如何修复它的,希望这对将来的人有所帮助