Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Newbie, simple sidemenu and content

$
0
0

app.js
var 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>


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>