angular - StencilJS 是否可以作为 Ionic 中的开发选项使用?

标签 angular typescript stenciljs ionic4

我想知道 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/

相关文章:

angular - 如何从注入(inject)的模拟服务中模拟 observable 和 geter

angular - Angular 8 中的延迟加载模块

angular - Primeng p-calendar 与父日历大小相同

javascript - Typescript ,'NodeListOf<Element>' 不是数组类型也不是字符串类型

Angular2 延迟加载模块 : how to create a build package with SystemJS Builder?

javascript - 扩展不正确的 Typescript 类定义

angular - 标识符引用组件的私有(private)成员

javascript - 测试用例失败

font-awesome - Font Awesome 在 Stenciljs 组件中不起作用

javascript - 模板项目中现有的模板组件