25 lines
496 B
Vue
25 lines
496 B
Vue
<template>
|
|
<DocSectionText v-bind="$attrs"></DocSectionText>
|
|
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
code: {
|
|
basic: `
|
|
// import as component
|
|
import Badge from 'primevue/badge';
|
|
|
|
// import as directive
|
|
import BadgeDirective from 'primevue/badgedirective';
|
|
|
|
app.directive('badge', BadgeDirective);
|
|
`
|
|
}
|
|
};
|
|
}
|
|
};
|
|
</script>
|