Skip to content

Template parse errors: Can't bind to 'product' since it isn't a known property of 'app-product-alerts'. #16314

@codeByAshu01

Description

@codeByAshu01

Bug, feature request, or proposal:

i have just started my first basic app in angular using stackblitz but it is giving me some error while adding new component and doing the same given instruction in tutorial. also pasting the whole stack trace please help.

What is the expected behavior?

What is the current behavior?

Error in /turbo_modules/@angular/compiler@8.0.1/bundles/compiler.umd.js (2479:21)
Template parse errors:
Can't bind to 'product' since it isn't a known property of 'app-product-alerts'.

  1. If 'app-product-alerts' is an Angular component and it has 'product' input, then verify that it is part of this module.
  2. If 'app-product-alerts' 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. ("
][product]="product">

"): ng:///AppModule/ProductListComponent.html@25:2

What are the steps to reproduce?

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

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

https://stackblitz.com/angular/dlynpyeolkm?file=src%2Fapp%2Fproduct-list%2Fproduct-list.component.html

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

adding product alert component
app-product-alerts
[product]="product">

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

https://stackblitz.com/angular/dlynpyeolkm?file=src%2Fapp%2Fproduct-list%2Fproduct-list.component.html

Is there anything else we should know?

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