mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
61894570f1
improve markdown for documentation. Duplicate of #45325 that targets 13.3.x. PR Close #45590
31 lines
870 B
Markdown
31 lines
870 B
Markdown
@name Invalid Attribute
|
|
@category compiler
|
|
@videoUrl https://www.youtube.com/embed/wfLkB3RsSJM
|
|
@shortDescription 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
|
|
|
|
Look at documentation for the specific [binding syntax](guide/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.
|
|
|
|
<!-- links -->
|
|
|
|
<!-- external links -->
|
|
|
|
<!-- end links -->
|
|
|
|
@reviewed 2022-02-28
|