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.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to