如何在angular4 webpack项目中使用日期时间选择器

时间:2017-08-22 07:09:42

标签: angular webpack datetimepicker angular-material2

我正在使用webpack工作angular4 app。现在我需要使用日期时间选择器 根据我的要求。我尝试了angular4材料和ng2-datepicker-bootstrap,但这些都给出了错误,而不是构建应用程序。我不知道如何在带有angular4的webpack项目中使用它

我如何使用它的任何建议。

我按照本教程进行angular4 webpack配置。 angular4 webpack configuration

由于

1 个答案:

答案 0 :(得分:1)

只需使用INPUT TYPE DATE即可获得日期时间选择器。

<input type=date>

https://www.w3schools.com/html/html_form_input_types.asp