want to show more data in another component when view in detail button is clicked (angular 6)

前端 未结 4 823
逝去的感伤
逝去的感伤 2020-11-30 16:00

I am new to angular6, Please do not consider this question as duplicated, as i could not able to find relevant answer so far, I have 2 components incident Component<

4条回答
  •  半阙折子戏
    2020-11-30 16:40

    when your incident-detail-component is a child element of your incident-component, you can simply pass the data in as an input variable. Take a look here: https://angular.io/api/core/Input

提交回复
热议问题