/config.ts Secret
Created
April 27, 2016 22:40
./lib/tabs/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function($stateProvider: angular.ui.IStateProvider, $urlRouterProvider: angular.ui.IUrlRouterProvider) { | |
'ngInject'; | |
$stateProvider.state('app.tabs', { | |
url: "/tabs", | |
views: { | |
'content@app': { | |
template: require("./index.html") | |
} | |
} | |
}); | |
$urlRouterProvider.otherwise("/tabs"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ion-tabs class="tabs-positive tabs-icon-only"> | |
<ion-tab title="Map" icon="ion-map" ui-sref="app.tabs.home"> | |
<ion-nav-view name="tab-home"></ion-nav-view> | |
</ion-tab> | |
<ion-tab title="Places" icon="ion-location" ui-sref="app.tabs.places"> | |
<ion-nav-view name="tab-places"></ion-nav-view> | |
</ion-tab> | |
<ion-tab title="Routes" icon="ion-android-walk"> | |
<ion-nav-view name="tab-routes"></ion-nav-view> | |
</ion-tab> | |
</ion-tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import modConfig from './config'; | |
let mod = angular.module('crossPlatform.tabs', [ | |
'ionic', | |
'ui.router' | |
]); | |
mod.config(modConfig); | |
export default mod; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment