I have a sub-navigation in my page that displays some subviews below a common main view. I would like to pass an object to the subviews through the
I think the proper Angular2 way to be passing data is via Dependency Injections (by using a Service) otherwise the user will be able to see the data you're passing in the browser's URL.
Also, using a Service will allow for "Separation of Concerns", meaning that Component A shouldn't be dependent on Component B.
Dependency Injection Links:
1) https://angular.io/guide/dependency-injection
2) https://angular.io/guide/dependency-injection-in-action
3) https://www.youtube.com/watch?v=MJrw43GP2u0