0
angular2에서 bootstrap-datepicker를 사용하려고합니다.angular2 및 bootstrap-datepicker - 선택한 날짜를받는 방법은 무엇입니까?
<div class="input-append date" id="datepicker">
<input class="span2" size="16" type="text" />
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
$('#datepicker').datepicker({
format: 'yyyy-mm-dd',
startDate: '2001-01-01',
autoclose: true
}).on('changeDate', function(ev){
this.stupid_date = ev.date;
console.log('dudeme',ev.date.valueOf(),ev.date)
});
선택한 날짜는 어떻게 받습니까? console.log가 인쇄되지만 this.stupid_date는 업데이트되지 않습니다.
최고 !!!!!!!!!를 ! 감사합니다 – Tampa
도와 드리겠습니다! :) – yurzui