问题
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