Skip to content

adapter and ng-show #182

Closed
Closed
@emabiz

Description

@emabiz

Hi,
I need to hide some elements displayed using ui.scroll.
I'm using version 1.6.3.
If you modify the basic adapter demo/adapter/adapter.html like this:

ng-show="false" <--------- buffer-size='5'>{{item.content}}
nothing happens, all items will continue to be shown.

If you replace ng-show with ng-if, you should get an exception like this:

TypeError: Cannot read property 'toLowerCase' of undefined
at new Padding (http://127.0.0.1:8000/dist/ui-scroll.js:1088:28)
at JQLite.createPaddingElements (http://127.0.0.1:8000/dist/ui-scroll.js:883:20)
at http://127.0.0.1:8000/dist/ui-scroll.js:1274:16
at publicLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:6956:29)
at boundTranscludeFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:7096:16)
at controllersBoundTransclude (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:7756:18)
at link (http://127.0.0.1:8000/dist/ui-scroll.js:1273:5)
at invokeLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:8219:9)
at nodeLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:7729:11)
at compositeLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js:7078:13)

maybe there is a better way to hide some elements and at the same time use the adapter.
Can you help me on this, please?

Thank you for your job,

Emanuele

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions