当我第一次呈现页面时,它会将网址显示为http://localhost:18841/#/flight/Payment
,这是' / flight / Payment'当我点击链接时(ui-sref =' flight.search')
并且我的payment.chstml页面是剃刀格式,当我点击提交按钮时,它会重定向到付款操作方法,然后我的网址将更改为http://localhost:18841/Flight/Payment#/
,之后当我点击SearchButton时,它会像这样追加{{1我的ui-routing无法正常工作,原因是什么?
这是我的$ stateProvider
http://localhost:18841/Flight/Payment#/flight/search
}
答案 0 :(得分:0)
您处于flight
状态,以便路由到flight/search
州,您必须在州提供商中写下该网址,而不仅仅是/search