// 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'
// 'starter.controllers' is found in controllers.js
angular.module('conFusion', ['ionic', 'conFusion.controllers'])

.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);
      cordova.plugins.Keyboard.disableScroll(true);

    }
    if (window.StatusBar) {
      // org.apache.cordova.statusbar required
      StatusBar.styleDefault();
    }
  });
})

.config(function($stateProvider, $urlRouterProvider) {
  $stateProvider

    .state('app', {
    url: '/app',
    abstract: true,
    templateUrl: 'templates/menu.html',
    controller: 'AppCtrl'
  })

  .state('app.search', {
    url: '/search',
    views: {
      'menuContent': {
        templateUrl: 'templates/search.html'
      }
    }
  })

  .state('app.browse', {
      url: '/browse',
      views: {
        'menuContent': {
          templateUrl: 'templates/browse.html'
        }
      }
    })
    .state('app.playlists', {
      url: '/playlists',
      views: {
        'menuContent': {
          templateUrl: 'templates/playlists.html',
          controller: 'PlaylistsCtrl'
        }
      }
    })

  .state('app.single', {
    url: '/playlists/:playlistId',
    views: {
      'menuContent': {
        templateUrl: 'templates/playlist.html',
        controller: 'PlaylistCtrl'
      }
    }
  });
  // if none of the above states are matched, use this as the fallback
  $urlRouterProvider.otherwise('/app/playlists');
});

@@ -945,18 +945,16 @@
 ovider%0A%0A
-  
   .state
@@ -1028,20 +1028,23 @@
 mplates/
-menu
+sidebar
 .html',%0A
@@ -1089,22 +1089,20 @@
 te('app.
-search
+home
 ', %7B%0A   
@@ -1109,22 +1109,20 @@
  url: '/
-search
+home
 ',%0A    v
@@ -1129,35 +1129,35 @@
 iews: %7B%0A      'm
-enu
+ain
 Content': %7B%0A    
@@ -1188,14 +1188,12 @@
 tes/
-search
+home
 .htm
@@ -1229,22 +1229,23 @@
 te('app.
-browse
+aboutus
 ', %7B%0A   
@@ -1254,22 +1254,23 @@
  url: '/
-browse
+aboutus
 ',%0A     
@@ -1281,35 +1281,35 @@
 ws: %7B%0A        'm
-enu
+ain
 Content': %7B%0A    
@@ -1342,14 +1342,15 @@
 tes/
-browse
+aboutus
 .htm
@@ -1377,17 +1377,17 @@
 %0A    %7D)%0A
- 
+%0A
    .stat
@@ -1393,24 +1393,24 @@
 te('app.
-playlist
+contactu
 s', %7B%0A  
@@ -1420,24 +1420,24 @@
  url: '/
-playlist
+contactu
 s',%0A    
@@ -1449,35 +1449,35 @@
 ws: %7B%0A        'm
-enu
+ain
 Content': %7B%0A    
@@ -1506,25 +1506,181 @@
 mplates/
-playlists
+contactus.html'%0A        %7D%0A      %7D%0A    %7D)%0A%0A    .state('app.menu', %7B%0A      url: '/menu',%0A      views: %7B%0A        'mainContent': %7B%0A          templateUrl: 'templates/menu
 .html',%0A
@@ -1706,21 +1706,8 @@
 r: '
-PlaylistsCtrl
 '%0A  
@@ -1748,14 +1748,19 @@
 app.
-single
+dishdetails
 ', %7B
@@ -1775,28 +1775,15 @@
 : '/
-playlists/:playlistI
+menu/:i
 d',%0A
@@ -1803,19 +1803,19 @@
       'm
-enu
+ain
 Content'
@@ -1850,24 +1850,26 @@
 mplates/
-playlist
+dishdetail
 .html',%0A
@@ -1893,20 +1893,8 @@
 r: '
-PlaylistCtrl
 '%0A  
@@ -1911,16 +1911,17 @@
 %7D%0A  %7D);%0A
+%0A
   // if 
@@ -2024,21 +2024,17 @@
 app/
-playlists
+home
 ');%0A
+%0A
 %7D);%0A

update router