Sha256: 8ff64e6ee555301ca714b190150e4c7403071cd2c077d5c179587758012140c7

Contents?: true

Size: 814 Bytes

Versions: 3

Compression:

Stored size: 814 Bytes

Contents

var logman = angular.module('logman',['ngRoute','ngResource','ui.bootstrap']);

logman.config(['$routeProvider','$locationProvider', function($routeProvider,$locationProvider) {
  $routeProvider.

  when('/', { templateUrl: '/app/dashboard-view'}). 
  
  when('/buckets/new', { templateUrl: '/app/bucket/add_edit.html'}). 
  when('/buckets/:id/details', { templateUrl: '/app/bucket/add_edit.html'}).
  
  when('/users', {templateUrl: '/app/user/list.html'}).
  
  when('/buckets/:id/logs', { templateUrl: '/app/bucket/logs.html'}).
  
  when('/api_guide', { templateUrl: '/app/api_guide/index.html'}).
  
  otherwise({ redirectTo: '/' });
  // configure html5 to get links working on jsfiddle
  // $locationProvider.html5Mode(true);
}]);


function LocationCtl($scope){
	angular.extend($scope, window.location);
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
logman-0.1.0 lib/console/static/app/logman.js
logman-0.1.0.alpha lib/console/static/app/logman.js
logman-0.0.2 lib/console/static/app/logman.js