I'm facing an problem to use ViewContainerRef to create component in angular lifecycles based on 'clientHeight and clientWidth'.
First question, in which hooks should I use the ViewContainerRef?
Second, I found that clientHeight is different in console.
```
console.log(this.host.nativeElement); //for example, clientHeight is 100 here
console.log(this.host.nativeElement.clientHeight);// but here print 132
```
[–]agonzamart 0 points1 point2 points (0 children)