Tuesday, 25 August 2015

AngularJS ng-cloak flickering

I was having a problem when using ng-cloak/ng-show, where there were unwanted elements flickering on the page and then disappearing.

Example:

The error message was flickering briefly before disappearing when it shouldn't have been appearing at all. It is occurring between when the view is first loaded and before Angular has initialized.

Adding a rule to CSS can stop the flickering:

No comments:

Post a Comment