我正在修改我们的网络以使用ui-router进行状态更改,这很有效。我们有很少的href指向元素id,它们无法工作,而是路由到/。如何避免它并使我们现有的href并行工作?
<div class="panel">
<div class="panel-heading">
<h4 class="panel-title"><a data-parent="#accordion"
data-toggle="collapse" class="panel-toggle" href="#faq1"><i class="fa fa-plus-square"></i>Can I viverra sit amet quam eget lacinia?</a></h4>
</div>
<div class="panel-collapse collapse" id="faq1">
<div class="panel-body">
Anim pariatur cliche reprehenderit, enim eiusmod high life
accusamus terry richardson ad squid. 3 wolf moon officia
aute, non cupidatat skateboard dolor brunch. Food truck
quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor,
sunt aliqua put a bird on it squid single-origin coffee
nulla assumenda shoreditch et. Nihil anim keffiyeh
helvetica, craft beer labore wes anderson cred nesciunt
sapiente ea proident. Ad vegan excepteur butcher vice lomo.
Leggings occaecat craft beer farm-to-table, raw denim
aesthetic synth nesciunt you probably haven't heard of them
accusamus labore sustainable VHS.
</div>
</div>
</div><!--//panel-->
答案 0 :(得分:0)
我相信您需要将锚定路由添加到角度路由中,然后确保#blah
部分最终作为查询参数附加到路由。