@stencil/core
Version:
A Compiler for Web Components and Progressive Web Apps
1 lines • 425 B
JavaScript
import{r as t,h as e}from"./p-fbbae598.js";class n{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}