Skip to content

isaaclyman/vue-custom-element-ts-example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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