ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

ionic tabs content not showing IOS

Open arafay696 opened this issue 10 years ago • 7 comments

ionic tabs content not loading in ios simulator.

orders.html

<ion-tabs class="tabs-striped tabs-top tabs-background-positive tabs-color-light order-tabs">

  <ion-tab href="" icon="item-daily">
    <ion-view>
      <div ng-include src="'templates/tab_daily.html'"></div>
    </ion-view>
  </ion-tab>

  <ion-tab href="" icon="item-weekly" ng-click="loadWeeklyMenus(1)">
    <ion-view>
      <div ng-include src="'templates/tab_weekly.html'"></div>
    </ion-view>
  </ion-tab>

  <ion-tab href="" icon="item-monthly" ng-click="loadWeeklyMenus(2)">
    <ion-view>
      <div ng-include src="'templates/tab_monthly.html'"></div>
    </ion-view>
  </ion-tab>

</ion-tabs>

</ion-content>

tab-daily.html

<ion-content class="order-daily-content order-content">

<div class="">
<div class="order-day-content">

  <p class="cur-day">{{days[day]}}</p>
</div>
<div class="order-date-content">
  <i class="ion-chevron-left" ng-click="onPrevDay()"></i>
  <!-- <p id="date">December 14, 2015</p> -->
  <p id="date">{{formatedDay}}</p>
  <i class="ion-chevron-right" ng-click="onNextDay()"></i>
 </div>
</div>

 <div class="order-item" ng-repeat="menu in dailyMenus | orderBy : 'BillofFareDate'"     ng-if="!menu.LoadingMenus && dailyMenus.length > 0"
     ng-class='setClass(menu.BillofFareDate,menu.LastOrderDate,menu.hasMenu)'
     ng-click="goDescription('{{menu.glGUID}}','{{menu.BillofFareDate}}','{{menu.hasMenu}}')">

  <div>
    <p class="order-price my-font2 my-font-bold float-right" ng-if="menu.hasMenu">{{menu.Price |
      currency:'&euro;'}}</p>

    <p class="order-price my-font2 my-font-bold float-right no-menu-price" ng-if="!menu.hasMenu">&euro;0</p>

    <div class="order-name my-font2 my-font-bold">
      <span> {{menu.hasMenu ? menu.BillofFareDayGroupDescription : "Kein Speiseplan vorhanden"}}</span>
    </div>

    <div class="order-description my-font1">

      <span
        class="menuDescription">{{ menu.hasMenu ? menu.MenuDescription : "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"}}</span>
      <span class="showDate">{{menu.BillofFareDate | date:'dd.MM.yy'}}</span>
    </div>
  </div>

</div>

<div class="order-item" ng-if="dailyMenus.length <= 0">

  <div>
    <p class="order-price my-font2 my-font-bold float-right">&euro;0</p>

    <div class="order-name my-font2 my-font-bold">
      <span>Kein Speiseplan vorhanden</span>
    </div>

    <div class="order-description my-font1">

      <span class="menuDescription">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
      <span class="showDate">&nbsp;&nbsp;</span>
    </div>
  </div>

</div>

</div>

app.js

   .state('app.orders', {
    url: '/orders',
    views: {
      'menuContent': {
        templateUrl: 'templates/orders.html',
        controller: "OrderCtrl"
      }
    }
  })

Browser & Operating System: iOS / Android / Chrome Chrome IOS

Run ionic info from terminal/cmd prompt: ionic serve --lab

arafay696 avatar Mar 04 '16 10:03 arafay696

Hello! Thanks for opening an issue with us! Are you still experiencing this issue with the latest version of ionic?

jgw96 avatar Mar 29 '16 15:03 jgw96

Since it has been a little while since there was any activity on this issue i will be closing it, but feel free to respond back if your still having the issue! Thanks again!

jgw96 avatar Apr 08 '16 21:04 jgw96

yes i face this issue

christianraj avatar Jul 12 '16 04:07 christianraj

+1

compitDanielos avatar Jul 17 '16 21:07 compitDanielos

my problem has been solved once i removed the ion-content tag, its the fact that we should not use tab tag inside content tag so try this way

christianraj avatar Jul 18 '16 03:07 christianraj

+1

sinospark avatar May 28 '18 10:05 sinospark

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 01 '18 04:09 ionitron-bot[bot]