Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to create a template I defined using the nuxi add command. #397

Open
JangCool opened this issue Apr 26, 2024 · 0 comments
Open

I want to create a template I defined using the nuxi add command. #397

JangCool opened this issue Apr 26, 2024 · 0 comments

Comments

@JangCool
Copy link

JangCool commented Apr 26, 2024

When you create a component using the nuxi add command, the basic contents are created as follows.

<script lang="ts" setup></script>

<template>
  <div>
    Component: common/TheHeader
  </div>
</template>

<style scoped></style>

But, I would like to create a component with more content.

<script lang="ts" setup>

//example....
const common = useCommon();
const utils = useUtils();
const userInfo = useUserInfo();


</script>

<template>
  <div>
    Component: common/TheHeader
  </div>
</template>

<style scoped></style>

Is there a way to replace the template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant