在model下配置
myapp.config(['ionicDatePickerProvider', function(ionicDatePickerProvider) {
var datePickerObj = {
inputDate: new Date(),
setLabel: '确定',
closeLabel: '取消',
weeksList: ["日", "一", "二", "三", "四", "五", "六"],
monthsList: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
templateType: 'popup',
to: new Date(),
dateFormat: 'dd MMMM yyyy',
closeOnSelect: false
};
ionicDatePickerProvider.configDatePicker(datePickerObj);
}])