0
マテリアライズのdatepickerから選択した日付を取得するにはどうすればよいですか?角度とマテリアライズの日付ピッカー
<div class="input-field col s3">
<input id="buyDate" class="datepicker" type="text" name="buyDate"
ng-model="buyDate" materialize-date-picker readonly>
</div>
そして、私のスクリプト:
この
は私の入力である$scope.SaveButton = function(){
var postRequest = $http({
method: "POST",
url: "http://localhost:5000/licenses",
dataType: 'json',
data : {
name: $scope.name,
count: $scope.count,
buyDate: $scope.buyDate,
licenseType: $scope.licenseType.licenseTypeId
},
headers: { "Content-Type": "application/json"}
});
postRequest.error(function (data, status){
$window.aler(data.Message);
})
}
AngularJSまたはAngular 2+ですか? – Sergey
AngularJSです。 – Kerni
このhttps://www.w3schools.com/angular/angular_databinding.aspをお読みください – Sergey