Skip to content

angular material table example not working  #8168

@samsakni

Description

@samsakni

Bug, feature request, or proposal:

mat-table is correct, not sure what is the wrong with the example code

What is the expected behavior?

What is the current behavior?

zone.js:690 Unhandled Promise rejection: Template parse errors:
Can't bind to 'dataSource' since it isn't a known property of 'mat-table'.

  1. If 'mat-table' is an Angular component and it has 'dataSource' input, then verify that it is part of this module.

  2. If 'mat-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

  3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("

    <mat-table #table [ERROR ->][dataSource]="dataSource">

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