text: angular.module('starter.routes', [])
  
  .config(function($stateProvider, $urlRouterProvider) {
    $stateProvider
  
    .state('app', {
      url: "/app",
      abstract: true, // not usable as it
      templateUrl: "templates/menu.html",
      controller: 'AppCtrl'
    })
  
    .state('app.search', {
      url: "/messages",
      views: {
        'menuContent': {
          templateUrl: "templates/messages.html",
          controller: "messages.list"
        }
      }
    });
  
    // if none of the above states are matched, use this as the fallback
    $urlRouterProvider.otherwise('/app/messages');
  });