我想知道 Stencil JS 是否会被用作在 Ionic 中开发移动应用程序的选项。
让我解释一下“开发的选择”是什么意思。 在 NativeScript 等其他框架中,you can choose to start a new project使用 Angular + Typescript 或 Javascript。此外,还存在其他“选项”(例如 VueJS for NativeScript )
StencilJS 是 Angular 等现有 javascript 框架的有趣替代品,用它构建 Ionic 应用程序会很棒。
现在,因为 StencilJS框架是由 Ionic 框架团队创建的,我想知道是否有一天它会作为 Angular 的替代品提供给所有 Ionic 开发人员。
最佳答案
24-01-2018 更新:
Josh 的另一篇精彩文章:An Introduction to Stencil
是的,你可以。
Stencil is a compiler that generates Web Components (more specifically, Custom Elements). Stencil combines the best concepts of the most popular frameworks into a simple build-time tool.
Since Stencil generates standards-compliant web components, they can work with many popular frameworks right out of the box, and can be used without a framework because they are just web components. Stencil also enables a number of key capabilities on top of Web Components, in particular Server Side Rendering (SSR) without the need to run a headless browser, pre-rendering, and objects-as-properties (instead of just strings).
您可以阅读更多关于 it here 的信息
在这里你可以看到如何用 Vue.js 做到这一点
关于angular - StencilJS 是否可以作为 Ionic 中的开发选项使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46847617/