Angular4 copy object without reference?

Issue Inside a component I tried to copy an object from a service that could be modified inside the component, but should stay in the service. private test; public ngOnInit(): { console.log(this.someService.test.someProperty) //’old’ this.test = this.someService.test; //not working as well?!

Continue reading