angular2 - passing data object between components
问题 Looking for some help, if possible. I have a data object located in one component, received from a REST call. It contains user details that I would like to share across components, but I am having trouble. What is the best way to pass this object over to another component, so I can use the details? Ex. The data object is named user, and I want to share the user._id created from the database and received from the REST call with a separate component. Thanks everyone for any help. COMPONENT ONE