ng2-bootstrap-modal icon indicating copy to clipboard operation
ng2-bootstrap-modal copied to clipboard

Shared service between modal and app component

Open lchimaru opened this issue 7 years ago • 0 comments

Is there any way to share service between modal component and standard component under the modal? I've tried to do so, but every time I use service as provider in main module and try to share it in components by adding it in their constructors I have 2 different instances of this service. Also passing service to modal as parameter in addDialog method not helping, because data is passed only once, and it's not updated if something change when modal is closed.

lchimaru avatar Mar 07 '17 08:03 lchimaru