1
我希望能夠捕捉到以「/ @」開頭並以完整瀏覽器重新加載處理的網站中的任何鏈接。angularjs:強制某些鏈接路徑重新加載的最佳方式
喜歡的東西:
$locationProvider.html5Mode(true)
$routeProvider.when("/@:id",
# window.location.href = [the link's url]
# all others are handled by typical controller/view
我已經能夠解決使用一個錨標記屬性/指令的問題,但我想在URL路由層做到這一點。
這不是一個真正的回答你的問題,但作爲http://stackoverflow.com/a建議您可以添加'目標=「_自我」'你的鏈接/2248275分之19257277 – 2013-11-22 15:29:44