ngx-moment:Angular的moment.js管道

时间:2021-01-31 03:58:10
【文件属性】:
文件名称:ngx-moment:Angular的moment.js管道
文件大小:217KB
文件格式:ZIP
更新时间:2021-01-31 03:58:10
angular moment angular-pipes time-ago moment-pipes ngx-moment Angular的moment.js管道 该模块适用于Angular 7.0.0及更高版本。 对于较旧的Angular版本,请安装 。 对于AngularJS,请查看 。 安装 npm install --save moment ngx-moment 或者如果您使用纱线: yarn add moment ngx-moment 用法 将MomentModule导入到应用程序的模块中: import { MomentModule } from 'ngx-moment' ; @ NgModule ( { imports : [ MomentModule ] } ) 如果您想提供将对管道可用的任何NgxMomentOptions ,则还可以使用: import { MomentModule } from 'ngx-moment' ; @ NgModule ( { imports : [ MomentModule . forRoot ( { relativeTimeThresholdOptions : {
【文件预览】:
ngx-moment-master
----.gitignore(72B)
----package.json(2KB)
----tslint.json(2KB)
----tsconfig.lint.json(135B)
----src()
--------add.pipe.spec.ts(1KB)
--------parse.pipe.spec.ts(2KB)
--------locale.pipe.ts(415B)
--------calendar.pipe.ts(3KB)
--------date-format.pipe.ts(433B)
--------moment-options.ts(880B)
--------is-after.pipe.spec.ts(1KB)
--------subtract.pipe.spec.ts(1KB)
--------calendar.pipe.spec.ts(1KB)
--------time-ago.pipe.spec.ts(5KB)
--------duration.pipe.ts(1KB)
--------from-utc.pipe.ts(396B)
--------is-after.pipe.ts(429B)
--------time-ago.pipe.ts(3KB)
--------add.pipe.ts(635B)
--------parse.pipe.ts(336B)
--------index.ts(869B)
--------duration.pipe.spec.ts(1KB)
--------locale.pipe.spec.ts(2KB)
--------from-utc.pipe.spec.ts(4KB)
--------subtract.pipe.ts(655B)
--------difference.pipe.spec.ts(2KB)
--------utc.pipe.ts(301B)
--------moment.module.ts(2KB)
--------local.pipe.ts(311B)
--------parse-zone.pipe.spec.ts(1KB)
--------local.pipe.spec.ts(2KB)
--------from-unix.pipe.spec.ts(595B)
--------difference.pipe.ts(611B)
--------is-before.pipe.spec.ts(1KB)
--------from-unix.pipe.ts(391B)
--------utc.pipe.spec.ts(2KB)
--------parse-zone.pipe.ts(271B)
--------is-before.pipe.ts(432B)
--------date-format.pipe.spec.ts(777B)
----.travis.yml(139B)
----CONTRIBUTING.md(2KB)
----LICENSE(1KB)
----tsconfig.spec.json(171B)
----CHANGELOG.md(11KB)
----tsconfig.json(442B)
----.github()
--------ISSUE_TEMPLATE.md(587B)
----angular.json(876B)
----README.md(9KB)
----prettier.config.js(101B)
----ng-package.json(271B)
----.vscode()
--------settings.json(294B)
----ng-package.prod.json(135B)
----.editorconfig(370B)
----yarn.lock(475KB)

网友评论