const routes = [
  {
    url: '#/',
    template: './routes/home/home.template.mustache',
    controller: './routes/home/home.controller',
    controllerAs: 'home'
  },
  {
    url: '#/login',
    template: './routes/login/login.template.mustache',
    controller: './routes/login/login.controller',
    controllerAs: 'login'
  },
  {
    url: '#/devices',
    template: './routes/device/device.template.mustache',
    controller: './routes/device/device.controller',
    controllerAs: 'devices',
    navOptions: {
      title: 'Devices',
      states: {
        default: [ 'back', 'calendar', 'filter' ],
        selected: [ 'cancel', 'edit', 'delete' ],
        multipleSelected: [ 'cancel', 'delete' ]
      }
    }
  }
];

module.exports = routes;

const routes = [
  // {
  //   url: '#/',
  //   template: './routes/home/home.template.mustache',
  //   controller: './routes/home/home.controller',
  //   controllerAs: 'home'
  // },
  {
    url: '#/login',
    template: './routes/login/login.template.mustache',
    controller: './routes/login/login.controller',
    controllerAs: 'login'
  },
  {
    url: '#/',
    template: './routes/device/device.template.mustache',
    controller: './routes/device/device.controller',
    controllerAs: 'devices',
    navOptions: {
      title: 'Devices',
      states: {
        default: [ 'back', 'calendar', 'filter' ],
        selected: [ 'cancel', 'edit', 'delete' ],
        multipleSelected: [ 'cancel', 'delete' ]
      }
    }
  }
];

module.exports = routes;

Set Devices as default view.
Set Devices as default view.
