Wait Angular finish updating DOM