The above code works perfectly fine, but the thing is I am getting custom config from another component via @Input() decorator in my wrapper class, is there a way I can pass the input config to the parent ImageViewerComponent(ngx-imageviewer) class?
Also, I need to make sure in case the incoming config property changes the ImageViewerComponent's config property changes as well.
Hi the ImageViewerComponent(ngx-imageviewer) only accepts custom ImageViewerConfig via providers array in @Component.
It works like this:
in wrapper-imageviewer.component.ts (my own custom class)
in ImageViewerComponent (by ngx-imageviewer)
The above code works perfectly fine, but the thing is I am getting custom config from another component via @Input() decorator in my wrapper class, is there a way I can pass the input config to the parent ImageViewerComponent(ngx-imageviewer) class? Also, I need to make sure in case the incoming config property changes the ImageViewerComponent's config property changes as well.