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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.