Consider getting rid of the register-element custom element. Currently, for each custom element the path to the element .html file has to be registered with the element factory so why not register the path to the .js file in the same way and then require it at the appropriate time? Seems like register-element adds additional complexity for nothing.
Consider getting rid of the
register-element
custom element. Currently, for each custom element the path to the element.html
file has to be registered with the element factory so why not register the path to the.js
file in the same way and then require it at the appropriate time? Seems like register-element adds additional complexity for nothing.