@@ -182,6 +182,25 @@ var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
182
182
});
183
183
</file>
184
184
</example>
185
+ *
186
+ * @knownIssue
187
+ *
188
+ * ### Flickering when using ngShow to toggle between elements
189
+ *
190
+ * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can
191
+ * happen that both the element to show and the element to hide are visible for a very short time.
192
+ *
193
+ * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations
194
+ * are defined for {@link ngShow} / {@link ngHide }. Internet Explorer is affected more often than
195
+ * other browsers.
196
+ *
197
+ * There are several way to mitigate this problem:
198
+ *
199
+ * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements }.
200
+ * - Use {@link ngIf } or {@link ngSwitch } instead of {@link ngShow } / {@link ngHide }.
201
+ * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements.
202
+ * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow } / {@link ngHide }.
203
+ * - Define an animation on the affected elements.
185
204
*/
186
205
var ngShowDirective = [ '$animate' , function ( $animate ) {
187
206
return {
@@ -382,6 +401,25 @@ var ngShowDirective = ['$animate', function($animate) {
382
401
});
383
402
</file>
384
403
</example>
404
+ *
405
+ * @knownIssue
406
+ *
407
+ * ### Flickering when using ngHide to toggle between elements
408
+ *
409
+ * When using {@link ngShow} and / or {@link ngHide} to toggle between elements, it can
410
+ * happen that both the element to show and the element to hide are visible for a very short time.
411
+ *
412
+ * This usually happens when the {@link ngAnimate ngAnimate module} is included, but no actual animations
413
+ * are defined for {@link ngShow} / {@link ngHide }. Internet Explorer is affected more often than
414
+ * other browsers.
415
+ *
416
+ * There are several way to mitigate this problem:
417
+ *
418
+ * - {@link guide/animations#how-to-selectively-enable-disable-and-skip-animations Disable animations on the affected elements }.
419
+ * - Use {@link ngIf } or {@link ngSwitch } instead of {@link ngShow } / {@link ngHide }.
420
+ * - Use the special CSS selector `ng-hide.ng-hide-animate` to set `{display: none}` or similar on the affected elements.
421
+ * - Use `ng-class="{'ng-hide': expression}` instead of instead of {@link ngShow } / {@link ngHide }.
422
+ * - Define an animation on the affected elements.
385
423
*/
386
424
var ngHideDirective = [ '$animate' , function ( $animate ) {
387
425
return {
0 commit comments