在AngularJs
我正在使用ngAria改进可访问性。我正在使用ui-sref
它来转换我的代码
<ul style="font-size: 18px">
<li>
<a ui-sref="scheduleallocation" >Department Admin DayTimeLocation</a>
</li>
<li>
<a ui-sref="activityoffering" >ActivityOffering List</a>
</li>
<li>
<a ui-sref="scheduleassignment" >Schedule Assignment</a>
</li>
</ul>
对此
<ul style="font-size: 18px">
<li>
<a ui-sref="scheduleallocation" href="#/scheduleallocation">Department Admin DayTimeLocation</a>
</li>
<li>
<a ui-sref="activityoffering" href="#/activityoffering">ActivityOffering List</a>
</li>
<li>
<a ui-sref="scheduleassignment" href="#/scheduleassignment//">Schedule Assignment</a>
</li>
</ul>
它在href中添加了#,这就是为什么在可访问性中出现以下错误。如何解决它?