Add import

pull/2668/head
Cagatay Civici 2022-06-14 15:02:58 +03:00
parent 86641d55cf
commit 66eca2e78d
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,8 @@ const dialogRef = this.$dialog;
<h5>Composition API</h5> <h5>Composition API</h5>
<p>The service can be injected with the <i>useDialog</i> function.</p> <p>The service can be injected with the <i>useDialog</i> function.</p>
<pre v-code.script><code> <pre v-code.script><code>
import { useDialog } from 'primevue/useDialog';
const dialog = useDialog(); const dialog = useDialog();
</code></pre> </code></pre>
@ -70,6 +72,7 @@ export default {
<h6>Composition API</h6> <h6>Composition API</h6>
<pre v-code.script><code> <pre v-code.script><code>
import ProductListDemo from './ProductListDemo'; import ProductListDemo from './ProductListDemo';
import { useDialog } from 'primevue/useDialog';
export default { export default {
methods:{ methods:{