Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

NG8002: Unknown attribute or input

Description

An attribute or property cannot be resolved during compilation.

This error arises when attempting to bind to a property that does not exist. Any property binding must correspond to either:

  • A native property on the HTML element, or
  • An @Input() property of a component or directive applied to the element.

The runtime error for this is NG0304: '${tagName}' is not a known element: …'.


Debugging the error

Look at documentation for the specific binding syntax used. This is usually a typo or incorrect import. There may also be a missing direction with property selector 'name' or missing input.