0

AngularJS markup shows all the hidden error messages, images, data in the markup if JavaScript breaks somewhere.

I saw ng-cloak but it only works to keep markup hidden till angular loads up.

Is there a way to avoid the UI getting disrupted when JS breaks ?

1 Answer 1

1

Yes : don't let JavaScript throw an uncatched exception in a production environment. That the purpose of unit testing, and one of the (numerous) advantages of AngularJS.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.