Micael,
Not sure what you are trying to do. Do you want to reference the DOM element in the controller code? If so, I have had success using jQuery and using the ElementRef that you can have access to in the constructor. For example, if the template includes
<h1 id="header">Message Header</h1>
and your component constructor looks like:
constructor(elemRef: ElementRef)
{
var el = $("#header", elemRef.nativeElement);
...
}
Don't know if that is what you are looking for.
I believe the local variable hash notation is useful only for referencing the element in the template.