-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathapp.coffee
More file actions
37 lines (30 loc) · 697 Bytes
/
app.coffee
File metadata and controls
37 lines (30 loc) · 697 Bytes
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
'use strict'
app = angular.module 'angularParseBoilerplate', [
'ng'
'ngResource'
'ui.router'
'ui.bootstrap'
'app.templates'
'Parse'
'angulartics'
'angulartics.google.analytics'
]
app.config (
$locationProvider
$stateProvider
$urlRouterProvider
ParseProvider
) ->
$locationProvider.hashPrefix '!'
$stateProvider
.state 'task',
url: '/:locale'
controller: 'TaskCtrl'
templateUrl: 'task.html'
$urlRouterProvider.otherwise '/fr'
ParseProvider.initialize(
"N2xyMRbsrFcBuzq7TXLwieDGM9FzwODEY44LLFOP", # Application ID
"zTAHO7HKWvbV1awq5wQlexRc368lOQtSbmycOi0O" # REST API Key
)
app.run ($rootScope, $state) ->
$rootScope.$state = $state