diff --git a/components/doc/codeeditor/templates.js b/components/doc/codeeditor/templates.js index 81697d2a1..573a7cea3 100644 --- a/components/doc/codeeditor/templates.js +++ b/components/doc/codeeditor/templates.js @@ -50,8 +50,10 @@ const getVueApp = (props = {}, sourceType) => { : {}; if (deps !== null && component !== null) { - imports += `import ${component} from 'primevue/${component.toLowerCase()}';`; - element += `app.component('${component}', ${component});`; + imports += `import ${component} from 'primevue/${component.toLowerCase()}'; +`; + element += `app.component('${component}', ${component}); +`; } if (embedded) {