Last active
May 19, 2018 12:58
-
-
Save alexzuza/469c1195d9031981c3384a3632d819df to your computer and use it in GitHub Desktop.
Ivy elRef template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
..., | |
template: '<ng-template #foo></ng-template>' | |
}) | |
class SomeComponent { | |
@ViewChild('foo', {read: ElementRef}) query; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment