When I compile without AoT all is fine, but when compile with AoT I get this error
ReferenceError: nameColumnHeader is not defined
I declared my ViewChild
inside .ts
file and inside .html
file I set local variable like this <div #nameColumnHeader></div>
Is there an expected way to write ViewChild
when compile with AoT ?