It depends on what your data is and how is it related. Its pretty much not an angular question but about data modeling.
In general, group together data that makes sense together.
For example, if you have child that needs firstName, lastName, address, age
for some person, it wouldn't make sense to send 4 @Input
s. You would rather create new type Person
with those 4 properties and send whole Person
as a single @Input
.
Now, if same component needs totalNumberOfPersons
, it wouldn't make too much sense to pack that int
into Person
type but you would be sending that one as a separate @Input
; so you would end up with 2 @Input
s:
@Input()
person: Person
@Input()
totalNumberOfPersons: int