Material Design date/time pickers built with Angular Material and Moment.js
npm install md-pickersNote: This repository was forked from alenaksu/mdPickers because of apparent inactivity. With version 1.0.0 I merged some important pull requests and added a lot of minor features myself (see changelog for details). In order to publish the update I renamed the package to md-pickers on bower. In the future will do my best to integrate further pull requests.
* CodePen
* moment.js
* AngularJS
* Angular Material
Install via Bower:
``bash`
bower install md-pickers
Alternatively, npm:
`bash`
npm install md-pickers
Use in Angular:
`javascript`
angular.module( 'YourApp', [ 'mdPickers' ] )
.controller("YourController", YourController );
- [x] Fixes for existing functionality
- [x] Integration of most important pull requests of the original repository
- [x] Update documentation and online demo
- [ ] Linting for code quality
- [ ] Unit tests
- [ ] Continuous Integration
- [ ] Typescript
- [ ] Add a picker for picking date & time as one
- [ ] Unfork this repository if it matures (or merge it back into the original if it gets revived)
All contributions are welcome. In order to keep the code nice and clean please follow the boy scout rule.
Note on spaces vs. tabs: This project consistently uses 4 spaces for indentation.
First install or update your local project's __npm__ and __bower__ tools:
`bashFirst install all the npm tools:
npm install
bower install
Then run the default gulp task:
`bash
builds all files in the
dist directory
gulp
Additionally, you can build the demo
gulp demo
`To run the demo:
`bash
If you don't want/can't install http-server globally
./node_modules/http-server/bin/http-serverInstall http-server globally
npm install -g http-server
http-server
`Then browse
/demo (or /demo-dist if you built it) on the printed address.$3
- Check that changes work on demo
- Check that changes work on demo-dist
- Update version in
bower.json and packages.json
- Add changes to CHANGELOG.md
- Build dist and demo-dist folders
- Create new tag for the version
- Submit to npm: npm publish`Please see LICENSE file.