How does angularjs let DOM operations complete before executing a piece of code?

  node.js, question

I wrote Document. GetElementByID (“MyID”). OffsetHeight to get the height in the instruction inside.
But I don’t know why I always get 0

Have you tried $(‘myid’).offsetHeight? I don’t know under what circumstances you use it. The specific guess not to come out