what is shadow dom in typescript code example
Example 1: create shadow root
hostElement.attachShadow({mode:"open"})
//open mode to alow js to acces the shadow dom
hostElement.attachShadow()
//shadow dom can not be accesed with js
Example 2: jsshadow
let shadow = this.attachShadow({mode: 'open'});