I am trying to reach/read some elements, which are inside a shadow-root, in my case a form tag. The HTML structure of the web-component seems like this:
<web-comp>
<h1>Titel</h1>
#shadow-root (open)
<form>
...
</form>
</web-comp>
Inside the Angular directive's link function i have sth. like:
link: function ($scope, el) {
var myWebComponent = el.find("web-comp"); // it finds it
var titel = myWebComponent.find("h1"); // it finds it too
myWebComponent.find("form"); // does not find it
myWebComponent.find("shadowRoot"); // does not find it
myWebComponent.find("#shadowRoot"); // does not find it
myWebComponent.find("#shadow-root"); // does not find it
myWebComponent.shadowRoot; // does not find it
myWebComponent.#shadowRoot; // does not find it
}
Is there a way to reach to form tag inside the shadowRoot?