ng2-datepicker

    4熱度

    2回答

    我想在我的應用程序中包含ng2-datepicker模塊。我嘗試了自述文件中提到的以下內容。 npm install ng2-datepicker --save 改性systemjs.config.js文件: .map { 'ng2-datepicker': 'npm:ng2-datepicker', 'moment': 'npm:moment/moment.js' }

    0熱度

    2回答

    我想在我的角2的應用程序使用ng2-datepicker。我遵循了上述頁面中給出的說明,但日期選擇器沒有顯示出來。控制檯記錄以下錯誤。 url_resolver.js:248 Uncaught TypeError: uri.match is not a function 我app.module.ts import { DatePicker } from 'ng2-datepicker/ng2-

    0熱度

    3回答

    因此,對於傳遞數據的簡單兩個組件,這應該很容易。但在我的情況下,我使用的是第三方的日期選擇器插件,然後,因爲我的應用程序的不同形式上有這麼多的日期字段,我決定創建一個我的日期選擇器組件,這樣我就不必重複每個配置認爲我使用它。現在的問題是,我傳遞的模型,其也被傳遞到日期選擇器組件這樣的子組件: 家長component.ts ... template: `<my-custom-datepicker-

    2熱度

    2回答

    我想用ng2-datepicker選擇一個日期,然後在桌面上顯示它。我遇到了綁定到我選擇的日期不起作用的問題。我想它必須對我做的格式選項(DD.MM.YYYY)做些什麼。在我的html,我有這樣的代碼: <ng2-datepicker [(ngModel)]="date" [options]="datepickeroptions"></ng2-datepicker> datepickeropt

    2熱度

    1回答

    我在我的角度應用程序中使用ng2-datepicker,我想從打字稿文件更新日期。 在HTML模板: <ng2-datepicker [options]="optionsForMenuDate" [(ngModel)]="selectedDate" name="selectedDate"></ng2-datepicker> 它綁定到一個時刻的對象,所以我嘗試更新它像這樣(我已經包括在角度解決目

    1熱度

    1回答

    我想使用ng2-datepicker,並且我沒有從輸入元素獲取觸摸的響應。日期選擇器輸入被標記爲已觸摸,但不會反彈到Angular。 <ng2-datepicker class="form-control ng-untouched ng-pristine ng-invalid" formcontrolname="datefound" _nghost-lur-40="" ng-reflect-nam

    0熱度

    1回答

    我在項目中使用ng2-datepicker。這是我正在使用的代碼。 <ng2-datepicker class="form-control" required [options]="{format:'MMM DD YYYY'}" [(ngModel)]="User.StartDate" name="StartDate" #StartDate="ngModel"></ng2-datep

    2熱度

    2回答

    我正在嘗試將ng2-datepicker整合到我的項目中。 它工作得很好,直到我試圖使用選項。根據文檔,我可以使用屬性綁定將選項傳遞給組件。於是,我就自定義格式: <ng2-datepicker [(ngModel)]="date" viewFormat="DD-MM-YYYY" name="date"></ng2-datepicker> 但日期格式錯誤仍然顯示(而這是不是應該根據文檔,默認格

    0熱度

    1回答

    我試圖使用ng2-datepicker,但我從npm安裝它後,我無法導入模塊。 app.module.ts: import { DatePicker } from 'ng2-datepicker/ng2-datepicker'; import { AppComponent } from './app.component'; @NgModule({ declarations: [