0
我在頁面中添加了一個帶引導程序樣式的導航欄。當點擊導航鏈接時,我正在尋找一種方法,根據所選的選項加載導航欄不同的模板,而不更改URL路線並將導航欄保持在其位置。我目前的問題是,當我點擊鏈接導航欄消失,模板被加載到一個頁面。在導航欄中顯示內容(引導程序)
有什麼建議嗎?
<template name="eventContainer">
{{#if currentUser}}
{{#each eventTag}}
<nav role="navigation">
<ul class="nav nav-tabs">
<h5 class="panel-title"> {{title}} </h5>
<li role="presentation" class="active"><a href="/newMatches"> {{eventMatchesCount eventCode}} Peers</a></li>
<li role="presentation"><a href="/members"> {{eventMembersCount eventCode}} Members </a></li>
</ul>
</nav>
{{/each}}
{{/if}}
</template>