How to pass multiple data to child component using @Input

Viewed 15192

I have a question that if we want to pass multiple data to child component using @Input how to achieve that.

If we have component something like this:

<ex-comp [exData1]="exampleData1" [exData2]="exampleData2"></ex-comp>

How to get the data in the child component. Using two @Inputs?

  1. If so, how does we know which data comes into which @Input? Order matters?

  2. If not, how to achieve that?

Sorry if I miss basic point in this.

Thanks..

2 Answers
Related