kompendium
Version:
Documentation generator for Stencil components
1 lines • 436 B
JavaScript
import{r as t,h as e}from"./p-e2749143.js";const n=class{constructor(e){t(this,e),this.content=""}componentWillLoad(){if(null!=this.documentLocation)return this.fetchNewContent(this.documentLocation)}fetchNewContent(t){return fetch(t).then((t=>t.text())).then((t=>{this.content=t}))}render(){return e("div",{innerHTML:this.content})}static get watchers(){return{documentLocation:["fetchNewContent"]}}};export{n as stencil_async_content}