Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/23.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材料中的年度日期选择器?_Angularjs_Angular Material - Fatal编程技术网

如何获得AngularJS材料中的年度日期选择器?

如何获得AngularJS材料中的年度日期选择器?,angularjs,angular-material,Angularjs,Angular Material,是否有md年选择器可用?如果是,请与我分享一些链接。如果没有,那么是否可以将md日期选择器转换为年份选择器 我试过使用一个普通的,提供模式、模型类型等,但没有有用的输出。,通过使用md current view属性,为年份选择器提供了一个选项,将其设置为year或month: 我试过了,但我没能得到我所期望的……我只想要几年@SaEChowdary看起来像md current view只出现在1.1.0版和更高版本中。更新你的angularjs材料到1.1.0及以上我使用的是md版本1.1.3

是否有
md年
选择器可用?如果是,请与我分享一些链接。如果没有,那么是否可以将
md日期选择器
转换为年份选择器

我试过使用一个普通的,提供模式、模型类型等,但没有有用的输出。

,通过使用
md current view
属性,为年份选择器提供了一个选项,将其设置为
year
month



我试过了,但我没能得到我所期望的……我只想要几年@SaEChowdary看起来像
md current view
只出现在1.1.0版和更高版本中。更新你的angularjs材料到1.1.0及以上我使用的是md版本1.1.3,你的更新有几个月和几年…我只需要重新更新。幸运的是,没有这样的方式只显示年份视图。