momentjs-angular-module

WebJar for momentjs-angular-module

License

License

MIT
Categories

Categories

JavaScript Languages Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

momentjs-angular-module
Last Version

Last Version

0.3.4
Release Date

Release Date

Type

Type

jar
Description

Description

momentjs-angular-module
WebJar for momentjs-angular-module
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/orcasnet/momentjs-angular-module

Download momentjs-angular-module

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/momentjs-angular-module/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>momentjs-angular-module</artifactId>
    <version>0.3.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/momentjs-angular-module/
implementation 'org.webjars.bower:momentjs-angular-module:0.3.4'
// https://jarcasting.com/artifacts/org.webjars.bower/momentjs-angular-module/
implementation ("org.webjars.bower:momentjs-angular-module:0.3.4")
'org.webjars.bower:momentjs-angular-module:jar:0.3.4'
<dependency org="org.webjars.bower" name="momentjs-angular-module" rev="0.3.4">
  <artifact name="momentjs-angular-module" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='momentjs-angular-module', version='0.3.4')
)
libraryDependencies += "org.webjars.bower" % "momentjs-angular-module" % "0.3.4"
[org.webjars.bower/momentjs-angular-module "0.3.4"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.2.0,2)
org.webjars.bower : momentjs jar [2.5.0,3)

Project Modules

There are no modules declared in this project.

Angular Moment.js Module

Build Status Code Climate Test Coverage

An AngularJS module to add Moment.js functionality to Angular. No jQuery necessary!

Requirements

Documentation

Please see the [Project Wiki] [3] for documentation. [3]: https://github.com/orcasnet/momentjs-angular-module/wiki

Directive

<input type="moment"
       ng-model="{string}"
       [format="{string}"]
       [model-format="{string}"]
       [view-format="{string}"]
       [min="{expression}"]
       [max="{expression}"]
       [step="{string}"]>
</input>

Parameters

Param Type Default Details
format (optional) String Specify a single Moment format for both the model and view values. Overridden if modelFormat or viewFormat is set. Sets date validation error key if the date is invalid.
modelFormat (optional) String $moment.$defaultModelFormat Specify a Moment format for the model value. Sets date validation error key if the model date is invalid.
viewFormat (optional) String $moment.$defaultViewFormat Specify a Moment format for the view value. Sets date validation error key if the view date is invalid.
min (optional) Expression Sets min validation error key if the date value is before the min date. Expected value is a date string or an array of a date string and a Moment format to parse it with.
max (optional) Expression Sets max validation error key if the date value is after the max date. Expected value is a date string or an array of a date string and a Moment format to parse it with.
step (optional) String 1 day Specify a quantity and a unit of time to step the date by on mouse wheel up/down, up/down arrow keys, or plus/minus keys. Pressing shift causes the date to step by one greater or lesser unit of time.

Note that all parameters can be bound data-bound and dynamic. If modelFormat is changed, the view value will be reparsed to provide the new format for the model value, and conversely if viewFormat is changed.

org.webjars.bower

CFS/SPF

Versions

Version
0.3.4