Set href in attribute directive in Angular

后端 未结 3 779
醉梦人生
醉梦人生 2020-12-15 17:54

I\'m trying to set up a Bootstrap tab strip with Angular 2. I have the tabs rendering in an ngFor but I\'m getting template errors when I try to put the

3条回答
  •  有刺的猬
    2020-12-15 18:14

    Well you can bind it with string interpolation:

    href = "#{{aType.Name}}" 
    

    (Note that the attribute used here is href, not [attr.href].)

提交回复
热议问题