TypeError: Converting circular structure to JSON when trying to POST request

前端 未结 6 1016
星月不相逢
星月不相逢 2021-02-12 15:34

I am getting the error in the title and here is the full stack trace, i am not sure what it is, any insight is welcomed!

browser_adapter.js:84 EXCEPTION: Error i         


        
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-12 16:15

    One of the way is you can make use of angular's built-in 'json' pipe also. For that, you need to add angular pipe in your component the this.myForm needs to pass in the pipe method. In the template, you can simply use {{ myForm.value | json }}.

提交回复
热议问题