So going from...
class Comp {
@ViewChild('foo')
ElementRef foo;
}
... to ...
class Comp {
@ViewChild('foo')
Element foo;
}
... does not work. We'd need a similar fix as one from QueryList -> List.
(This isn't strictly supported, but it will make the migration much easier)
Now fixed at HEAD!
@matanlurey - I'm using Angular alpha+7 and it doesn't seem to work. Is there anything preventing this from making it into a release? Thanks. /cc @kwalrath
How about for @ViewChildren()? Do I need to use the read: parameter in that case?
Should work the same, AFAIK. If not it could be a bug.
Scratch that, it was never implemented for ViewChildren. Let's re-open this.
This works now as #1078!