需要在 angular 6 中找到最佳日期和时间选择器

Need to find best date and time picker in angular 6

我有一个使用此配置的 angular 项目。

Angular CLI: 6.0.3
Node: 10.16.3
OS: linux x64
Angular: 6.0.2
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.3
@angular-devkit/build-angular     0.6.8
@angular-devkit/build-optimizer   0.6.8
@angular-devkit/core              0.6.3
@angular-devkit/schematics        0.6.3
@angular/cdk                      7.2.1
@angular/cli                      6.0.3
@ngtools/webpack                  6.0.8
@schematics/angular               0.6.3
@schematics/update                0.6.3
rxjs                              6.0.0
typescript                        2.7.2
webpack                           4.8.3

我的项目需要最佳日期和时间选择器。

我已经用过datetime picker。但是我在 prod 构建中遇到了问题。

Issue

为了防止这个问题,我必须升级 npm 版本,它需要 typescript 3+ 版本。 当我更新 typescript 版本时,我在 ng serve 中遇到错误。

需要:我的应用程序中有日期最小值、最大值验证。所以我需要稳定的版本,它能给我这种类型的功能。

特点:

- Min Date
- Max Date 
- Pick time only 
- Set the value (Patch value)
- Support reactive form

任何人都可以共享任何 npm 模块 link 吗?

ngx-bootstrap 有一个很棒的日期选择器,这里是一个演示

https://stackblitz.com/edit/ngx-bootstrap-datepicker

和文档

https://valor-software.com/ngx-bootstrap/#/datepicker

或Angular Material有日期选择器

https://material.angular.io/components/datepicker/examples

最适合我的是

https://www.npmjs.com/package/ng-pick-datetime

因为我没有使用 bootstrap