Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Ionic Starter App
- // angular.module is a global place for creating, registering and retrieving Angular modules
- // 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
- // the 2nd parameter is an array of 'requires'
- angular.module('starter', ['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();
- }
- });
- })
- .config(function($stateProvider, $urlRouterProvider) {
- $stateProvider
- .state('app', {
- url: '/app',
- abstract: true,
- templateUrl: 'templates/menu.html',
- })
- .state('app.home', {
- url: '/home',
- views: {
- 'menuContent': {
- templateUrl: 'templates/Home.html'
- }
- }
- })
- .state('app.profile', {
- url: '/profile',
- views: {
- 'menuContent': {
- templateUrl: 'templates/Profile.html'
- }
- }
- })
- .state('app.locate', {
- url: '/locate',
- views: {
- 'menuContent': {
- templateUrl: 'templates/locate.html',
- controller: 'MapCtrl'
- }
- }
- })
- .state('app.notifications', {
- url: '/notifications',
- views: {
- 'menuContent': {
- templateUrl: 'templates/Notifications.html'
- }
- }
- })
- .state('app.bug', {
- url: '/bug',
- views: {
- 'menuContent': {
- templateUrl: 'templates/ReportBug.html'
- }
- }
- })
- .state('app.settings', {
- url: '/settings',
- views: {
- 'menuContent': {
- templateUrl: 'templates/Settings.html'
- }
- }
- })
- .state('app.contact', {
- url: '/contact',
- views: {
- 'menuContent': {
- templateUrl: 'templates/ContactUs.html'
- }
- }
- });
- // if none of the above states are matched, use this as the fallback
- //$urlRouterProvider.otherwise('/app/playlists');
- $urlRouterProvider.otherwise('/app/home');
- });
Add Comment
Please, Sign In to add comment