1

I am trying to do a simple @Input and Angular simply refuses to take the value. I have the parent component, and inside its template I have:

<app-summary-data-row>
    [test] = "'ttt'"
</app-summary-data-row>

In the child component I have:

@Input() test: string;

In the child template I have: {{ test }} the value 'ttt' is simply not displayed. What can be the problem here?

1
  • I'm voting to close this question as off-topic because it was my minor bug, typo error. Commented Jun 17, 2019 at 9:38

1 Answer 1

2

Syntax is wrong. Try like this:

<app-summary-data-row  [test]="'ttt'">   
</app-summary-data-row>
0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.