Now that Controller is deprecated, what do I use instead?

本秂侑毒 提交于 2019-12-08 19:06:48

问题


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.


回答1:


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.

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.

My understanding is that Template is a combination of Controller and Component without shadowDOM.



来源:https://stackoverflow.com/questions/23549800/now-that-controller-is-deprecated-what-do-i-use-instead

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!