Sha256: 199f34336f9313ba5b01fbaf54494de56ba43ca202cb4d549e474917d80d97b8

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

robeaux.config(function($routeProvider) {
  $routeProvider

    .when('/robots', {
      controller: 'IndexCtrl',
      templateUrl: '/partials/index.html',
    })

    .when('/robots/:robot', {
      controller: 'RobotCtrl',
      templateUrl: '/partials/robot.html',
    })

    .when('/themes', {
      controller: 'ThemesCtrl',
      templateUrl: '/partials/themes.html',
    })

    .otherwise({
      redirectTo: '/robots'
    });
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
robeaux-0.2.0 js/router.js
robeaux-0.1.1 js/router.js
robeaux-0.1.0 js/router.js