Angular 不计算不带括号的自定义零部件特性中的插值
他说: 我们通常可以在插值和属性绑定之间进行选择。这个 以下绑定对执行相同的操作:Angular 不计算不带括号的自定义零部件特性中的插值,angular,Angular,他说: 我们通常可以在插值和属性绑定之间进行选择。这个 以下绑定对执行相同的操作: <p><img src="{{heroImageUrl}}"> is the <i>interpolated</i> image.</p> <p><img [src]="heroImageUrl"> is the <i>property bound</i> image.</p> 使用方法如下:
<p><img src="{{heroImageUrl}}"> is the <i>interpolated</i> image.</p>
<p><img [src]="heroImageUrl"> is the <i>property bound</i> image.</p>
使用方法如下:
<custom heading="{{tasksHeading}}"...
为什么插值属性的第一个选项没有按照文档中显示的方式工作
<custom heading="{{tasksHeading}}"...
<custom [heading]="tasksHeading"...