Aug 22, 2017 · 1 min read
Wonderful article, you did explain it really well. I just found myself in this situation today.
But I’m interested in your providers approach.
“Note that we can pass the same object as an Input() to the tooltip component, for instance:
this.componentRef.instance.config = config”
So, theorically, using this, you will propagate the config changes to the child and the angular detector would thrown an error for the double checking?
I have been using this myself and I was unable to propagate the changes with that assignment. The child component didn’t update its inputs, so I ended up monkey patching it with ngOnChanges. Could you elaborate it a bit more?
