Files
habitica/assets/js/app.js
T
Tyler Renelle 7bfaac80a7 rewrite2 big one: add ngRoute for /#/tasks & /#/options. requires 2
/partial routes on server. code cleanup & reorganization, remove a lot
of return statements (coffeescript compiled)
2013-08-27 21:13:05 -04:00

13 lines
489 B
JavaScript

"use strict";
window.habitrpg = angular.module('habitrpg', ['ngRoute', 'userServices', 'sharedServices', 'authServices', 'notificationServices', 'ui.bootstrap'])
.constant("API_URL", "")
.config(['$routeProvider', function($routeProvider) {
$routeProvider
//.when('/login', {templateUrl: 'views/login.html'})
.when('/tasks', {templateUrl: 'partials/tasks'})
.when('/options', {templateUrl: 'partials/options'})
.otherwise({redirectTo: '/tasks'});
}])