Skip to content

at-nikolaus/steal-element

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

steal-element

StealJS Element to dedublicate Steal Loading and other optimizations like supplying a diffrent scope to steal-module

Example with steal-module

<!-- Global -->
<steal>
  // Steal module code here like Steal.import
  // This is not scoped so this innerText === Steal Module
</steal>
<steal-module>
  // Steal Module with global window.Steal 
  // Steal.import
</steal-module>
<!-- Scoped The Steal tag it self holds a own Steal version that can be shared via selecting the tag-->
<steal baseURL="" scoped>
  <!-- All steal-module tags between the Tag is using this.currentScript.Steal -->
  <h1>I am Scoped</h1>
  <!-- When scoped is set this is not a script tag content its HTML element-->
  <steal-module>
  // All between the Tag is using this.currentScript.Steal
  //import myView ...
  </steal-module>
</steal>

About

StealJS Element to dedublicate Steal Loading and other optimizations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published