我无法在AngularJS表达式中显示锚标记。问题是,当我尝试将锚标记显示为从API获取的图标时,它只显示原始路径为
a href='../UserControls/DownloadRLCSFile.ashx?Path=\\dotnetdev\csv\RLCSDocuments\Registrations\ABACF\E.S.I.C. Registration\Sample.xlsx' target='_blank' download><i class='fa fa-download' style='font-size: 13pt;' ></i></a>
请找到以下代码:
<div id="Div2" ng-controller="BasicRegulatoryDetail">
<h4 class="padder-sm b-b"><b>Regulatory Updates</b></h4>
<div>
<div class="table-responsive">
<table class="table table-striped bg-white ">
<tbody>
<tr ng-repeat="bs in BasicInfo" >
<td><asp:HyperLink ID="HyperLink1" NavigateUrl="~/RLCS_Connect/RegulatoryUpdateDetails.aspx?Subject={{bs.Subject}}" runat="server">{{bs.Subject}}</asp:HyperLink></td>
<td>{{bs.Document_Path}}</td> //here i am facing the problem
</tr>
</tbody>
</table>
</div>
</div>
</div>
答案 0 :(得分:0)
听起来你可能需要ng-href:
https://docs.angularjs.org/api/ng/directive/ngHref
写错的方法:
<a href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
写它的正确方法:
<a ng-href="http://www.gravatar.com/avatar/{{hash}}">link1</a>