我想试着在我的Angular 应用程序中使用material 拖放,但一个只包含此代码的组件从字面上复制了https://material.angular.io/cdk/drag-drop/overview
<div cdkDropList cdkDropListOrientation="horizontal" class="example-list" (cdkDropListDropped)="drop($event)">
@for (tok of sentTokens; track tok) {
<div class="example-box" cdkDrag>{{tok}}</div>
}
</div>
causes me these errors even though I don't see any unescaped brackets in this code
Invalid ICU message. Missing '}'
Unexpected character "EOF" (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)
可能的原因是什么?