Skip to content

An example repository demonstrating how to use TypeScript with vue-custom-element

Notifications You must be signed in to change notification settings

isaaclyman/vue-custom-element-ts-example

Repository files navigation

This is an example repository demonstrating how to use vue-custom-element with TypeScript.

To get started:

npm install
npm run dev

Then visit localhost:8081.

This project was generated using vue-cli with the webpack template. Things to note:

  • The sfc.d.ts file solves a well-known issue where TypeScript does not understand what *.vue files are.
  • The entry file is src/main.ts. The component being used as a Vue Custom Element is src/example-component.vue. src/main-component.vue is a simple wrapper component that is mounted on the HTML page.

About

An example repository demonstrating how to use TypeScript with vue-custom-element

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published