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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -