Why this canvas animation hangs when loaded for a second time with ngRoute?
问题 Problem I'm using a space invaders canvas animation as my 404 not found page. It is working pretty fine when the user is redirected to it for the first time, but the animation hangs if the user is redirected a second time. Demo I've created a Plunker example to show the issue. The page starts at the / location loading the home.html. If you click on "Redirect to /404", the location will be changed to /404 and 404.html will be loaded. The game animation will be running without problems. However