Skip to content

ionic2 -bug(virtualscroll) - Virtual scroll does not work in modals #8142

Closed
@zakton5

Description

@zakton5

Short description of the problem:

When presenting a modal with a virtual scroll list, I receive the following error.


`VM658 zone.min.js:1 Unhandled Promise rejection: EXCEPTION: Error in ./SelectionModal class SelectionModal - inline template:16:16
ORIGINAL EXCEPTION: No provider for Content!
ORIGINAL STACKTRACE:
Error: DI Exception
    at NoProviderError.BaseException [as constructor] (https://npmcdn.com/@angular/core@2.0.0-rc.4/src/facade/exceptions.js:27:23)
    at NoProviderError.AbstractProviderError [as constructor] (https://npmcdn.com/@angular/core@2.0.0-rc.4/src/di/reflective_exceptions.js:43:16)
    at new NoProviderError (https://npmcdn.com/@angular/core@2.0.0-rc.4/src/di/reflective_exceptions.js:80:16)
    at ReflectiveInjector_._throwOrNull (https://npmcdn.com/@angular/core@2.0.0-rc.4/src/di/reflective_injector.js:786:19)
    at ReflectiveInjector_._getByKeyDefault (https://npmcdn.com/@angular/core@2.0.0-rc.4/src/di/reflective_injector.js:814:25)
    at ReflectiveInjector_._getByKey (https://npmcdn.com/@angular/core@2.0.0-rc.4/src/di/reflective_injector.js:777:25)
    at ReflectiveInjector_.get (https://npmcdn.com/@angular/core@2.0.0-rc.4/src/di/reflective_injector.js:586:21)
    at ElementInjector.get (https://npmcdn.com/@angular/core@2.0.0-rc.4/src/linker/element_injector.js:30:48)
    at ElementInjector.get (https://npmcdn.com/@angular/core@2.0.0-rc.4/src/linker/element_injector.js:30:48)
    at ReflectiveInjector_._getByKeyDefault (https://npmcdn.com/@angular/core@2.0.0-rc.4/src/di/reflective_injector.js:811:24)
ERROR CONTEXT:
[object Object] ; Zone: angular ; Task: Promise.then ; Value: ViewWrappedException {_wrapperMessage: "Error in ./SelectionModal class SelectionModal - inline template:16:16", _originalException: NoProviderError, _originalStack: "Error: DI Exception↵    at NoProviderError.BaseExc…@2.0.0-rc.4/src/di/reflective_injector.js:811:24)", _context: DebugContext, _wrapperStack: "Error: Error in ./SelectionModal class SelectionMo…ar@2.0.0-beta.10/bundles/ionic.system.js:16259:64"} undefined`

Which Ionic Version?
2.0@beta.10 and 11

Plunker that shows an example of your issue

http://plnkr.co/edit/kRTqAU33ZBgflrI5bGJu?p=preview

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