import { builder } from '@builder.io/sdk' builder.init('7a0e03458c994ae3913c4c1a0c725a5e') builder.get('page').promise().then(content => { // Add the HTML to the element needed, wrapping with our webcomponent library // to fill in any needed interactivity (e.g. lazy loaded images, interactive tabs, etc) document.querySelector('#my-page').innerHTML = ` ${content.data.html} ` });
 

Forum Posts

kelly6071
May 23, 2019
In General Discussions
It’s good to have you here! Feel free to share anything - stories, ideas, pictures or whatever is on your mind. Here you can start discussions, connect with members, reply to comments, and more. Have something to say? Leave a comment or share a post!
Welcome to the Forum! content media
0
0
1
kelly6071
Admin
More actions
 
import { builder } from '@builder.io/sdk' builder.init('7a0e03458c994ae3913c4c1a0c725a5e') builder.get('page').promise().then(content => { // Add the HTML to the element needed, wrapping with our webcomponent library // to fill in any needed interactivity (e.g. lazy loaded images, interactive tabs, etc) document.querySelector('#my-page').innerHTML = ` ${content.data.html} ` });