mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(collectionRepeat): add note about ng-show/ng-hide
This commit is contained in:
1
js/angular/directive/collectionRepeat.js
vendored
1
js/angular/directive/collectionRepeat.js
vendored
@@ -30,6 +30,7 @@
|
||||
* 6. Each collection-repeat list will take up all of its parent scrollView's space.
|
||||
* If you wish to have multiple lists on one page, put each list within its own
|
||||
* {@link ionic.directive:ionScroll ionScroll} container.
|
||||
* 7. You should not use the ng-show and ng-hide directives on your ion-content/ion-scroll elements that have a collection-repeat inside. ng-show and ng-hide apply the `display: none` css rule to the content's style, causing the scrollView to read the width and height of the content as 0. Resultingly, collection-repeat will render elements that have just been un-hidden incorrectly.
|
||||
*
|
||||
*
|
||||
* @usage
|
||||
|
||||
Reference in New Issue
Block a user