html - Polymer custom element tag appearing in the DOM -
i've started learning polymer custom elements.
i've created simple custom element, usage of follows:
<my_custom_element></my_custom_element>
the template custom element is:
<template> <span>hello</span> </template>
if inspect dom using chrome dev tools, notice my_custom_element
tag appears in dom. wasn't expecting this. expecting tag replaced template content. my_custom_element
represent in own right?
i read :host
can used style custom element internally within definition , it's used style host element itself. again don't understand means style host element in own right. isn't host element defined template content?
the web components model not use <my-custom-element>
placeholder, actual , real html element complex behaviors , own contents.
Comments
Post a Comment