I am developing an application using angular2. I have a scenario where I need to pass complex data (array of objects) from one component to another component(they are not pa
You could achieve through sharing data between two components using Observables.
I didn't write this post but its quite useful and easy to understand -
A quick post to show an example of something that got me stuck for a little while - how to communicate between components in Angular 2/4.
The solution is to use an Observable and a Subject (which is a type of observable)
http://jasonwatmore.com/post/2016/12/01/angular-2-communicating-between-components-with-observable-subject