在客户端制作 VueJS 组件的最佳方式

Best way to make VueJS components in a client side

我想在 JAVA 应用程序中使用 VueJS。我已经制作了一个大的 Vue 组件,但现在我想将这个大组件分成一小部分...

如何声明组件并仅在客户端使用它们?

感谢提示!

现在我对 VueJS 有了更多的了解,我发现我的问题很奇怪...

好吧,我们没有任何 JS 加载器,所以我们必须在主 html 文件中加载 html 文件(声明了 Vue 组件)才能使用它。

html code...

// import html file with component
// import html file with component

// use component