Make usage of moment consistent throughout app

This always includes the user's language preference when loading moment.
It also deletes the moment global, so if you don't require it somehow
you will get an error trying to call `moment`'.

This is setup to provide moment to both angular and plain JavaScript
modules. In angular modules, just add `moment` as a dependency. In plain
js use `import moment from 'tower/shared/moment/moment';`.
This commit is contained in:
Joe Fiorini
2015-06-01 16:23:32 -04:00
parent fdb8fdf24a
commit 884423f86c
12 changed files with 70 additions and 19 deletions
@@ -7,8 +7,8 @@
/* jshint unused: vars */
export default
[ '$rootScope',
function() {
[ 'moment',
function(moment) {
return {
restrict: 'E',
scope: {