6. Remove tabs
Several of the e-mission projects so far have removed some subset of the tabs. The naive way to remove a tab is to simply comment it out from the UI.
- Comment out the game tab by changing
<!-- Game Tab --> <ion-tab title="Goals" icon="ion-android-checkbox" href="#/root/main/goals"> <ion-nav-view name="main-goals"></ion-nav-view> </ion-tab>
<!-- Game Tab <ion-tab title="Goals" icon="ion-android-checkbox" href="#/root/main/goals"> <ion-nav-view name="main-goals"></ion-nav-view> </ion-tab> -->
- Save the file
- The change is detected and the UI reloads.
[phonegap] file changed <path_to_e-mission-phone>/www/templates/intro/summary.html [phonegap] Running command: <path_to_emission_phone>/hooks/after_prepare/010_add_platform_class.js <path_to_emission_phone> ... [phonegap] [console.log] Ending config [phonegap] [console.log] Starting run [phonegap] [console.log] onLaunch method from factory called [phonegap] [console.log] Ending run ... [phonegap] [console.log] Running calorieData with 0 and 0 [phonegap] [console.log] Running calculation with NaN and NaN [phonegap] 200 /__api__/autoreload?appID=39ec34dbbee54c9df1a13aa626c467ca
- Game tab is gone!
- This is the most naive approach to removing the tab - just hide it from the user. This leaves background operations (e.g. invoked using