0
필터 검색으로 작동하는 양식의 페이지가 있고 필드 중 하나가 날짜 필드입니다.각형 Datapicker가 NgModel을 통해 값을 전달하지 않음
나는 각도 날짜 (https://github.com/angular-ui/ui-date)를 구성했으며 날짜 필드에 포커스를 맞출 때 달력이 작동합니다.
문제는 : 내가 양식을 제출하려고하면 날짜 필드 값이 NG-모델을 통해 컨트롤러에 통과하지
하지만 다른 필드가 작동합니다. 입력에서 ui-date를 제거하면 작동합니다.
내가 뭘 잘못하고있어?
MY HTML
<form novalidate name="filterForm" ng-submit="submitFiltro()">
<label class="painel-datas-text" for="field-5">Product</label>
<input class="painel-data-select w-input" id="field-5" maxlength="256" ng-model="filtro.produto" name="produto" placeholder="NET/CLARO" required="required" type="text">
<label class="painel-datas-text" for="field">Date</label>
<input ui-date class="painel-data-select w-input" id="field" maxlength="256" ng-model="filtro.de" name="date" placeholder="01/02/2016" required="required" type="text">
<label class="painel-datas-text" for="field-2">seller</label>
<input class="painel-data-select w-input" id="field-2" maxlength="256" ng-model="filtro.vendedor" name="vendedor" placeholder="TODOS" required="required" type="text">
<input class="painel-button w-button" type="submit" value="FILTRAR">
MY JS는 :
나는이 문서에서 무엇을 본 적이에서var app = angular.module('painelvendas', ['ui.date']);
app.controller('painelController', function($scope, $http) {
$scope.submitFiltro = function(){
console.log($scope.filtro);
};
});