A component for inputting times. Uses momentjs and performs basic validation.
Exposes a time-input component. Use moment conventions for defining format:
http://momentjs.com/docs/#/displaying/format/
Action will be called when the time has changed and can be parsed correctly.
If the date cannot be parsed the element is endowed with the class .invalid.
{{time-input value=task.startTime
format='h:mm a'
action='timeChanged'
class='time-edit'}}
You can specify on the time-input component.
format- the date format as recognised by moment.jsaction- the action to trigger when when the time is changed, passes the new time as a parameter.input-class- classes to add to the inputplaceholder- the placeholder text for the input
git clonethis repositorynpm installbower install
ember server- Visit your app at http://localhost:4200.
ember testember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.