How to create a Web Component in Vue

A shot of code
A shot of code
12 هزار بار بازدید - 6 سال پیش - In this video we go
In this video we go through the steps to create a Web Component using the Vue framework and test that it works just as any manually created one would. Using the Vue CLI we build a standard Single File Component with the --target of WC which wraps our component so as to expose the Web Component standards and create a Shadow DOM for us.

The reason for trying this was to see just how easy, or hard! it is to create a Web Component using Vue. Spolier alert it is unbelievably easy to do so in Vue :-)
6 سال پیش در تاریخ 1397/09/13 منتشر شده است.
12,096 بـار بازدید شده
... بیشتر