copied from a project that was version on mercurial
This commit is contained in:
commit
ec72b5b91a
24 files changed
+841
No files matched your search
@@ -0,0 +1,37 @@
|
||||
|
||||
root = this;
|
||||
|
||||
angular.module('bab', [
|
||||
'ngRoute'
|
||||
'bab.filters'
|
||||
'bab.services'
|
||||
'bab.directives'
|
||||
'bab.controllers'
|
||||
]).
|
||||
config(['$routeProvider', ($routeProvider) ->
|
||||
$routeProvider.when('/', {templateUrl: 'partials/home.html', controller: 'homeCtrl'})
|
||||
$routeProvider.when('/login', {templateUrl: 'partials/login.html', controller: 'loginCtrl'})
|
||||
$routeProvider.when('/about', {templateUrl: 'partials/about.html', controller: 'aboutCtrl'})
|
||||
$routeProvider.otherwise({redirectTo: '/'})
|
||||
])
|
||||
|
||||
root.filters = angular.module('bab.filters', [])
|
||||
root.services = angular.module('bab.services', [])
|
||||
root.directives = angular.module('bab.directives', [])
|
||||
root.controllers = angular.module('bab.controllers', [])
|
||||
|
||||
|
||||
root.filters.filter 'month', () ->
|
||||
(text) ->
|
||||
return ['janvier',
|
||||
'février',
|
||||
'mars',
|
||||
'avril',
|
||||
'may',
|
||||
'juin',
|
||||
'juillet',
|
||||
'aout',
|
||||
'september',
|
||||
'octobre',
|
||||
'novembre',
|
||||
'decembre'][Number(text) - 1]
|
||||
Reference in new issue
Block a user