/* angular-moment.js / v1.0.1 / (c) 2013, 2014, 2015, 2016 Uri Shaked / MIT Licence */
'format amd';
/* global define */
(function(){
'use strict';
functionisUndefinedOrNull(val){
returnangular.isUndefined(val)||val===null;
}
functionrequireMoment(){
try{
returnrequire('moment');// Using nw.js or browserify?
}catch(e){
thrownewError('Please install moment via npm. Please reference to: https://github.com/urish/angular-moment');// Add wiki/troubleshooting section?
}
}
functionangularMoment(angular,moment){
if(typeofmoment==='undefined'){
if(typeofrequire==='function'){
moment=requireMoment();
}else{
thrownewError('Moment cannot be found by angular-moment! Please reference to: https://github.com/urish/angular-moment');// Add wiki/troubleshooting section?
}
}
/**
* @ngdoc overview
* @name angularMoment
*
* @description
* angularMoment module provides moment.js functionality for angular.js apps.
*/
angular.module('angularMoment',[])
/**
* @ngdoc object
* @name angularMoment.config:angularMomentConfig
*
* @description
* Common configuration of the angularMoment module