New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how should i use <cdk-virtual-scroll-viewport> from @angular/cdk/scrolling #12666

Closed
fatemerashidi1991 opened this Issue Aug 14, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@fatemerashidi1991

fatemerashidi1991 commented Aug 14, 2018

Bug, feature request, or proposal:

Error: Template parse errors:
Property binding cdkVirtualForOf not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations". ("

[ERROR ->]<div *cdkVirtualFor="let item of items">{{item}}</div>

What is the expected behavior?

What is the current behavior?

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Is there anything else we should know?

@fatemerashidi1991

This comment has been minimized.

fatemerashidi1991 commented Aug 14, 2018

I imported
import {ViewportRuler,ScrollDispatcher} from '@angular/cdk/scrolling'; in my component and also
import {ScrollDispatchModule ,ScrollDispatcher} from '@angular/cdk/scrolling';
import { VIEWPORT_RULER_PROVIDER } from '@angular/cdk/scrolling'; in my app.module.ts

@josephperrott

This comment has been minimized.

Contributor

josephperrott commented Aug 14, 2018

Please keep GitHub issues for bug reports / feature requests. Better avenues for troubleshooting / questions are stack overflow, gitter, mailing list, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment