javascript - What is the state of ElementRef when it's available in components constructor -
i can access elementref
in components constructor:
export class mycomponent { constructor(element: elementref) { element.nativeelement
what state of dom element:
1) in terms of dom - put in dom already? rendered? it's child components dom elements created , appended?
2) in terms of child components lifecycle - stages have child components gone through - oninit, aftercontentinit etc.?
1) elementref.nativeelement
avalable when ngafterviewinit()
called.
2) if mean transcluded children, ngaftercontentinit()
.
Comments
Post a Comment