{"id":195,"date":"2023-09-11T22:36:37","date_gmt":"2023-09-11T13:36:37","guid":{"rendered":"https:\/\/m-potion.com\/?p=195"},"modified":"2024-04-09T11:08:09","modified_gmt":"2024-04-09T02:08:09","slug":"nuxt3-composables","status":"publish","type":"post","link":"https:\/\/m-potion.com\/information\/nuxt3-composables","title":{"rendered":"Nuxt3 composables"},"content":{"rendered":"\n
\ubaa8\ub4e0 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 composables\ub85c \uc815\ub9ac\ud574 \ub193\ub294 \uac83\uc774 \uc88b\ub2e4.<\/p>\n\n\n\n
export const useUtils = () => {\r\n const sayHello = () => console.log('Hello');\r\n return {\r\n sayHello,\r\n };\r\n};\n<\/code><\/pre>\n\n\n\n\n- pages\/index.vue<\/li>\n<\/ul>\n\n\n\n
<script setup>\r\n const { sayHello } = useUtils();\r\n sayHello();\r\n<\/script><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"\ubaa8\ub4e0 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 composables\ub85c \uc815\ub9ac\ud574 \ub193\ub294 \uac83\uc774 \uc88b\ub2e4.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-195","post","type-post","status-publish","format-standard","hentry","category-information"],"yoast_head":"\n
Nuxt3 composables - \uace0\uc6b4\uadf8\ubbf8<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n