Passing large array from parent component to child component

16 views
Skip to first unread message

Sri Ramya

unread,
Jul 10, 2019, 10:31:39 AM7/10/19
to Angular and AngularJS discussion
Hi all,

I am trying to pass a large array from parent component to child component. Should I use @Input()  or service approach. Which one would be a better approach?

Thank you,
Sri

Sander Elias

unread,
Jul 10, 2019, 10:42:42 AM7/10/19
to Angular and AngularJS discussion
Hi Sri,

Passing a large array is not an issue for either way. Array's are passed by reference anyway, so it's just a quick as passing an integer.

Regards
Sander

Reply all
Reply to author
Forward
0 new messages