I have a custom angular component, to which is added an HTML element, dynamically, by a third-party library that I'm using inside the angular component. The particular third-party library is irrelevant, because I'm looking for a solution that will work with a variety of third-party libraries.
I would like to apply/add to these dynamically added HTML elements angular's emulated encapsulation attributes (e.g. _ngcontent-c1
). I would prefer an official method if one exists (I was unable to find such a method), or something reasonably reliable otherwise.