我正在遵循bootstrap
的模板之一,并且正在处理下一个问题:
模板
<div class="col-lg-4 col-sm-6">
<a class="portfolio-box" href="img/portfolio/fullsize/1.jpg">
<img class="img-fluid" src="img/portfolio/thumbnails/1.jpg" alt="">
<div class="portfolio-box-caption">
<div class="project-category text-white-50">
Category
</div>
<div class="project-name">
Project Name
</div>
</div>
</a>
</div>
我的问题如下:
`href` in the `<a>` seems to shows in a modal the image in a bigger size, but I am trying to use it as a variable.
我尝试使用ng-ref="myvariable"
,但没有发生(错误)
我该怎么办?
答案 0 :(得分:0)
也许您应该执行下一个:
...
<a class="portfolio-box" href={{ your-variable}}>
...
“您的变量”的值应在此模板的组件中。