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

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -