Can I use a data URL when importing a web component template? -
you can import web component using following syntax:
<link rel="import" href="my-component.html"/>
can make href
data url?
(i report if succeed in doing so).
what mean? document.url?
if so, way inside of my-component.html
(it's need in <script>
component's html):
var url = document.currentscript.ownerdocument.url; // "http://localhost/my-component.html"
Comments
Post a Comment