E
E
Egor Antropov2019-08-13 09:27:13
Angular
Egor Antropov, 2019-08-13 09:27:13

What does an attribute on a component do?

Component specifies another component

<table-fields fields="fieldsList" (fieldsChange)="fieldsChange($event)"></table-fields>

What does ? And how to use it? fields="fieldsList"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Pikat, 2019-08-13
@PavelPikat

This is @Inputthe 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 question

Ask a Question

731 491 924 answers to any question