Angular - Pass data to parent component

前端 未结 2 1558
情话喂你
情话喂你 2020-12-20 06:42

I have in my parent component this:

 obj: any = { row1: [], row2: [], total: [], sumTotal: 0 };

I pass obj to child component :

         


        
2条回答
  •  醉酒成梦
    2020-12-20 06:59

    You should try using services to pass values from one component to another. https://www.youtube.com/watch?v=69VeYoKzL6I

提交回复
热议问题