app.jsvar playApp = angular.module('playApp', ['ionic'])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
if(window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if(window.StatusBar) {
StatusBar.styleDefault();4
}
});
})
.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/about');
$stateProvider
.state('playApp.about', {
url: '/about',
views: {
'main-view': {
templateUrl: 'templates/about.html',
controller: 'aboutController'
}
}
})
})
aboutController.js
`playApp.controller('aboutController', function($scope) {
})`
about.html
<ion-view class="light">
<ion-content>
<div class="list list-inset light top180">
<button class="button button-block button-grey">About my App</button>
</div>
</ion-content>
</ion-view>