iegorov
12/17/2015 - 3:27 AM

lkDateRangePicker using

lkDateRangePicker using

controller('AdminInvoiceOrdersCtrl', function() {
  this.filterFields = [
    {
      key: 'dateRange',
      type: 'lkDateRangePicker',
      templateOptions: {
        label: 'Дата ПП'
      }
    }
  ];
  /**
     * задание даты программно
     * this.filterData = {
     *   dateRange: {
     *     dateStart: '2015-10-11',
     *     dateEnd: '2015-10-11'
     *   }
     * };
     */
    this.filterData = {};
  
  this.showOrders = () => {
    let _filterParams = this.setFilterDate(angular.copy(this.filterData), 'dateRange');
  };
});