0
在我的angularjs
應用程序中,我在div
中使用jquery datepicker
。jQuery datepicker只能工作一次angularJs
<div class="col-md-6" ng-show="!viewMode">
<input type="text" readonly focus-me="{{ DateOfBirthFocus }}" id="DateOfBirth" name="DateOfBirth" ng-model="DateOfBirth" placeholder="01-jan-1991" class="form-control date-picker" ng-keydown="DateOfBirth_KeyDown($event)" ng-blur="DateOfBirthFocus=false;" required>
</div>
這是第一次,當我加載網頁,它工作完全正常,但後來我躲在這個div使用ng-show
並再次顯示,按要求日期選擇器不能正常工作。它不會打開日曆視圖。我試過this solution但它沒有幫助我。任何猜測我做錯了什麼或錯過了什麼?
任何形式的幫助將不勝感激。
你能提供一個有效的plunkr /小提琴 –