Skip to content

An Angular directive to help with string duration inputs, like "3h25m", and convert them to minutes in numbers as the output.

Notifications You must be signed in to change notification settings

littletof/duration-directive

Repository files navigation

DurationDirective

An example project, that showcases a directive that handles duration inputs in forms.

It converts inputs like 150, 15m, 1h26, 1:45, 1 45, 1.5 into minutes as the output of the formfield, and standerdizes the displayed value of the formfield to 1 h 24 m format

Demo

You can find a working demo here

About

An Angular directive to help with string duration inputs, like "3h25m", and convert them to minutes in numbers as the output.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published