if (!window.var) var work = angular.module('work', []).
config(function($routeProvider){
$routeProvider.
when('/', {controller:workCtrl, templateUrl:'/ang/work/list.html'}).
when('/log/:memberId', {controller:logCtrl, templateUrl:'/ang/work/log.html'}).
when('/edit/:itemId', {controller: itemEditCtrl, templateUrl:'/ang/work/edit.html'}).
when('/add/', {controller:workNewCtrl, templateUrl:'/ang/work/add.html'}).
when('/add-log/:memberId', {controller:logNewCtrl, templateUrl:'/ang/work/add-log.html'}).
otherwise({redirectTo:'/'});
});