Reverend Bubbles
Reverend Bubbles

Reputation: 1393

Angular2 site showing odd behavior after error

I'm not really sure how to describe this in a few words, so sorry for the vague title.

I have an Angular 2 site. When things are working right, it's perfect, but once an error gets thrown, the site stops functioning as expected. For example:

If I click on one link and the subsequent page throws an error, it seems to permanently wreak havoc on my site since, if I try to click away to something else, I go to the new page, but the previous page's content is still visible below (literally below, like a block element, not layered) and if I keep clicking around, I basically start stacking page content. Even if I log out, it doesn't help. I literally need to start over in the location bar and "re-browse" to the homepage to get it to reset itself.

Any idea how I can make the site fail more gracefully than that?

Upvotes: 0

Views: 22

Answers (1)

Reverend Bubbles
Reverend Bubbles

Reputation: 1393

Just posting this as an answer so future people will know what happened. Apparently, I was using an older version of BrowserAnimationsModule which was updated to solve this exact issue in Angular5.

I updated to the latest version of Angular and all was fixed.

Upvotes: 1

Related Questions