new Routes()
This is not, in fact, a class, but rather a file for defining the routes that are used in your application. You should only need to edit this file if you wish to add new routes.
The file configures Angular UI's
$stateProvider to create
the routes. Each route is created by a single call to
$stateProvider.state().
The following is a snippet of the top several lines of the file. The
first six lines can be ignored. The call to $stateProvider.state() is
the first of many such calls in the file. This call in particular
configures the 'home' state. Based on the information given in this
call, the 'home' state will be accessible by browsing to the root path
of the application (http://<YOURSERVER>:3000/). The app will use the
file at templateURL (here, modules/core/views/home.client.view.html)
to render this state.
To add your own state, simply add another call to
$stateProvider.state(). The name of the state should match the name of
the slide in your schema structure document (see the README).
Example
angular.module('core').config(['$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
// Redirect to home view when route not found
$urlRouterProvider.otherwise('/');
// Home state routing
$stateProvider
.state('home', {
url: '/',
templateUrl: 'modules/core/views/home.client.view.html'
})
...