Removed mdDateLocaleProvider accidentally left on removal of ngMaterial

This commit is contained in:
tanshu 2018-05-15 01:00:35 +05:30
parent 9464117a2f
commit dc0c21a841

View File

@ -6,14 +6,6 @@ export function configureApp() {
.config(['$httpProvider', function ($httpProvider) {
$httpProvider.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
}])
.config(['$mdDateLocaleProvider', function ($mdDateLocaleProvider) {
$mdDateLocaleProvider.formatDate = function (date) {
return !angular.isUndefined(date) ? moment(date).format('DD-MMM-YYYY') : "";
};
$mdDateLocaleProvider.parseDate = function (date) {
return moment(date, 'DD-MMM-YYYY').toDate();
};
}])
.config(['$httpProvider', function ($httpProvider) {
$httpProvider.interceptors.push('responseInterceptor');
}])