Relative Content

Tag Archive for javascriptangularsettimeout

Angular Router Outlet breaking when using setTimeout, angular 17

So I am working on a project and after routing was implemented a component has broken. On one component I have used a promise delay to hold off some DOM manipulation (adding a class to an element) while an animation occurs. Both of these work fine. The problem happens when I enter setTimeout via a promise, code below