forked from mozilla/seasponge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.coffee
41 lines (40 loc) · 903 Bytes
/
app.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
'use strict'
###*
# @ngdoc overview
# @name seaspongeApp
# @description
# # seaspongeApp
#
# Main module of the application.
###
angular
.module('seaspongeApp', [
'ngAnimate'
'ngCookies'
'ngResource'
'ngRoute'
'ngSanitize'
'ngTouch'
'ui.bootstrap'
'ui.select'
'ngDragDrop'
])
.config ($routeProvider) ->
$routeProvider
.when '/',
templateUrl: 'views/main.html'
controller: 'MainController'
.when '/about',
templateUrl: 'views/about.html'
controller: 'AboutController'
.when '/draw',
templateUrl: 'views/draw.html'
controller: 'DrawController'
.when '/create',
templateUrl: 'views/create.html'
controller: 'CreateController'
.when '/load',
templateUrl: 'views/load.html'
controller: 'LoadController'
.otherwise
redirectTo: '/'