Blame view

app/scripts/routes.js 492 Bytes
c87bc1f33   TRUONG   first commit: ini...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  define([], function(){
      'use strict';
      return {
          defaultRoutePaths: '/',
          routes: {
              '/about': {
                 templateUrl: '/views/about.html',
                 dependencies: ['/scripts/controllers/about.js']
              },
              /* add more routes */
              '/': {
                  templateUrl: '/views/main.html',
                  dependencies: [
                      '/scripts/controllers/main.js'
                  ]
              }
          }
      };
  });