简体   繁体   English

弯矩范围的角度模块

[英]Angular module for moment-range

I am using angular-moment to use momentjs in my angular project. 我正在使用angular-moment在我的angular项目中使用momentjs。 I like that I can simply incluse the moment variable into my constructor to use moment in my controller. 我喜欢这样,我可以简单地将moment变量包含到构造函数中,以在控制器中使用moment。

Is there a similar angular module for moment-range ? 力矩范围是否有类似的角度模块?

I believe that there is no angular specific module built for this. 我相信没有为此构建的特定于角度的模块。

But I also don't think there is a need for one. 但我也不认为需要一个。 Angular moment exists as a module because not only it hooks momentjs library to your app but it also provides with angular specific filters & directives. 角矩作为一个模块存在,因为它不仅将momentjs库挂接到您的应用程序,而且还提供了特定于角的过滤器和指令。

So just do a bower install moment-range and reference the js file. 因此,只需在bower install moment-range并引用js文件即可。 Then you are good to go with using the bits in any of your angular controllers. 然后,您可以在任何角度控制器中使用这些位。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM