Angular 从父组件到子组件的输入值不起作用

Angular input value from parent to child component doesn't work

我正在尝试做一个简单的 @Input 而 Angular 只是拒绝取值。我有父组件,在它的模板中我有:

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

在我的子组件中:

@Input() test: string;

在我的子模板中: {{ 测试 }} 值 'ttt' 根本不显示。这可能是什么问题?

语法错误。像这样尝试:

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