2016-06-27 4 views
0

ページを変更すると、最初のページには下のナビゲーションバーがあり、2番目のページには下のナビゲーションバーがありません.2番目のページから最初のページから下のナビゲーションバーが表示され、しかし、最初のページの下部にナビゲーションバーが原因で下のナビゲーションバーの、何の関係もありません、何もページ変更時に角型UIナビが隠されています

<div class="navbar navbar-app navbar-absolute-top" ui-yield-to="headNavigation" 
    ng-if='headNavigationShow' style="background: #C20404;padding-top:20px;height:65px;"> 
    <div class="btn-group pull-left" ui-yield-to="leftHeadNavigation"> 
    </div> 
    <div class="navbar-brand navbar-brand-center" ui-yield-to="centerHeadNavigation"> 
    </div> 
    <div class="btn-group pull-right" ui-yield-to="rightHeadNavigation"> 
    </div> 
</div> 

<div class="navbar navbar-app navbar-absolute-bottom" ui-yield-to="footNavigation" 
    ng-if='footNavigationShow'> 
    <div class="btn-group pull-left" ui-yield-to="leftFootNavigation"> 
    </div> 
    <div class="navbar-brand navbar-brand-center" ui-yield-to="centerFootNavigation"> 
    </div> 
    <div class="btn-group pull-right" ui-yield-to="rightFootNavigation"> 
    </div> 
</div> 

<!-- App Body --> 
<div class="app-body"> 
    <div class="app-content" style="margin-top:13px;"> 
     <ng-view></ng-view> 
    </div> 
</div> 

this is the first page,it has the bottom navbar and has the menuthis is first page ,back from the second page ,the bottom navbar has nothing

答えて

0

は持っていませんでした。 <div ui-content-for="footNavigation" ng-if="$parent.headNavigationShow"> <footnavigation-directive info="{{foot_navigation_position}}" </footnavigation-directive> </div>

このように、ロード順を制御するにはng-ifを使用します。

関連する問題