Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 如何添加一个“;日期时间“;角js应用程序的选择器?_Angularjs_Html_Input_Twitter Bootstrap 3_Datetimepicker - Fatal编程技术网

Angularjs 如何添加一个“;日期时间“;角js应用程序的选择器?

Angularjs 如何添加一个“;日期时间“;角js应用程序的选择器?,angularjs,html,input,twitter-bootstrap-3,datetimepicker,Angularjs,Html,Input,Twitter Bootstrap 3,Datetimepicker,我正在开发一个AngularJS应用程序。它有一个页面,输入日期。我需要添加一个日期作为输入 Date Input <input type="date" ng-model="InputDate" /> 日期输入 我该怎么做 您可以使用角度引导组件:如果您想要一个简单的解决方案,考虑到您不想只为应用程序中的日期时间选择器注入额外的依赖项,请使用内置方法: <input type="datetime-local" id="exampleInput" name="input"

我正在开发一个AngularJS应用程序。它有一个页面,输入日期。我需要添加一个日期作为输入

Date Input

<input type="date" ng-model="InputDate" />
日期输入

我该怎么做

您可以使用角度引导组件:

如果您想要一个简单的解决方案,考虑到您不想只为应用程序中的日期时间选择器注入额外的依赖项,请使用内置方法:

<input type="datetime-local" id="exampleInput" name="input" ng-model="example.value"
  placeholder="yyyy-MM-ddTHH:mm:ss" min="2001-01-01T00:00:00" max="2013-12-31T00:00:00" required />


然而,如果你的应用程序需要在多个视图中输入日期时间,那么你也可以使用其他第三方模块(只需谷歌)。这样做的一个主要优点是让你的应用程序用户体验到更好的UI/UX。

希望指南或简单的日期输入示例。