【发布时间】:2020-01-22 18:59:49
【问题描述】:
HTML 代码:
<tr ng-repeat="x in products">
<a href="#!/{{x.product_name}}" class="button"> {{x.product_name}}</a>
我只想在 angularjs 范围内得到这个 {{x.product_name}}。 意味着,如果我单击任何按钮,它应该将 x.product_name 传递给控制器中的 angularjs。如何做到这一点?
我是 angularjs 的新手。 提前谢谢你。
【问题讨论】:
标签: html css mysql angularjs ajax