Is it possible to disable the router for certain # hash-based routing for elements such as the nav-tabs (or any other hash anchors)
<ul class="nav nav-tabs" role="tablist">
<li><a href="#tab-one" role="tab" data-toggle="tab">First Tab</a></li>
...
<div class="tab-content">
<div class="tab-pane" id="tab-one">
Currently that is picked up by Embers router.
Perhaps some global replace could be used for Ember hash but that seems incredibly poor.
if(window.location.hash){
window.location.href = window.location.href.replace(/#.*/,'');
}
Aucun commentaire:
Enregistrer un commentaire