Answer the question
In order to leave comments, you need to log in
What does an attribute on a component do?
Component specifies another component
<table-fields fields="fieldsList" (fieldsChange)="fieldsChange($event)"></table-fields>
fields="fieldsList"
Answer the question
In order to leave comments, you need to log in
This is @Input
the one that passes the list of objects to display, only spelled wrong - needs to be wrapped in square brackets.
fieldsChange is @Output
, respectively.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question