Failed to use boostrap modal in angular

Why can"t you render like this? you can"t control the modal pop-up
clipboard.png

.
Mar.16,2021

{{something}} this is for inserting text. You can't use this method when binding input parameters, just pass in the variable name.
if you need to add -sharp before item.target , add -sharp to item in advance and return.,

the correct code should look like this:

    [attr.data-target]="item.target"
Menu