Hey Michael, I'm not sure if I understood you correctly. Having the
reference in #header you should be able to pass the raw element to any
Componnet/Directive
Say something like this
// HTML
<h1 #header > Message Header </h1>
<my-cmp [header]="header"></my-cmp>
// Component
@Component({
selector : 'my-cmp',
properties : ['header: header']
});
@View({
...
});
class MyCmp {
constructor() {
console.log(this.header); // I think it won't be printed at this
point
}
onInit() {
console.log(this.header); // At this point it should be printable
}
}
--
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.