Wait element display in document.
npm install -S @jswork/next-wait-to-display
import '@jswork/next-wait-to-display';
// check target:
nx.waitToDisplay('#target', 1000, (el) => {
console.log('has element!', el);
});
Code released under the MIT license.