I want to get and set the object data in different component in angular.
So which is the best way to do that?