现在控制器已被弃用,我该使用什么? [英] Now that Controller is deprecated, what do I use instead?
问题描述
我有两个顶级控制器,现在 Controller
已弃用,我想知道如何将它们转换为他们需要的任何东西。
I have two top level controllers, and now that Controller
is deprecated, I'm wondering how to convert them to whatever it is they need to be.
推荐答案
在类似问题的答案中,已经提到即使 Controller
已经被弃用,没有替换但是会在1.0之前。
In the answer of a similar question it was already mentioned that even though Controller
is already deprecated there is no replacement yet but will be before 1.0.
至于我从最近发布的更新中读到 Template
计划成为替换控制器
和装饰器
/ 指令
。我没有检查,但我认为它还没有发货在0.11.0。
As far as I read from recent issue updates Template
is planned to become the replacement for Controller
and Decorator
/Directive
. I haven't checked but I think it is not yet shipped in 0.11.0.
我的理解是模板
是控制器
和组件
,不带shadowDOM。
My understanding is that Template
is a combination of Controller
and Component
without shadowDOM.
这篇关于现在控制器已被弃用,我该使用什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!