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.
Asked
Active
Viewed 1,370 times
8

w.brian
- 16,296
- 14
- 69
- 118
1 Answers
5
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.

Community
- 1
- 1

Günter Zöchbauer
- 623,577
- 216
- 2,003
- 1,567
-
1I am using components with shadowDom:false instead of Controllers. The shadowDOM.js to be used give me stacktraces when compiled to JS in chrome and firefox. – Daniel May 10 '14 at 15:07
-
1@Daniel I think components with `shadowDom: false` is what becomes Template (not sure about this though). `shadow_dom.js` is deprecated and known to cause errors - use http://pub.dartlang.org/packages/web_components instead. – Günter Zöchbauer May 10 '14 at 15:10