Need to pass value / data from vue.js to builderio like React:
React Code starts here:
import { BuilderComponent, builder } from ‘@builder.io/react’
import {useState,useEffect} from ‘react’
builder.init(‘YOUR_KEY’)
export const App = () => {
const [builderContentJson, setBuilderContentJson] = useState(null)
useEffect(() => {
builder.get(‘spud-home’, { url: location.pathname })
.promise().then(setBuilderContentJson)
}, )
return <BuilderComponent model=“spud-home” content={builderContentJson} data={{
auth: “false”,
loc:“loc1”
}} />
}
export default App;
End of code
i need same to use in vue.js to guide me any document to resolve my problem.