48 lines
775 B
Markdown
48 lines
775 B
Markdown
|
|
# mdPickers
|
||
|
|
Material Design date/time pickers built with Angular Material and Moment.js
|
||
|
|
|
||
|
|
|
||
|
|
## Online demos
|
||
|
|
|
||
|
|
* [CodePen](http://codepen.io/alenaksu/full/eNzbrZ)
|
||
|
|
|
||
|
|
|
||
|
|
## Requirements
|
||
|
|
|
||
|
|
* [moment.js](http://momentjs.com/)
|
||
|
|
* [AngularJS](https://angularjs.org/)
|
||
|
|
* [Angular Material](https://material.angularjs.org/)
|
||
|
|
|
||
|
|
## Using mdPickers
|
||
|
|
|
||
|
|
Install via Bower:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
bower install mdPickers
|
||
|
|
```
|
||
|
|
|
||
|
|
Use in Angular:
|
||
|
|
```javascript
|
||
|
|
angular.module( 'YourApp', [ 'mdPickers' ] )
|
||
|
|
.controller("YourController", YourController );
|
||
|
|
```
|
||
|
|
|
||
|
|
## Building mdPickers
|
||
|
|
|
||
|
|
First install or update your local project's __npm__ tools:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# First install all the npm tools:
|
||
|
|
npm install
|
||
|
|
|
||
|
|
# or update
|
||
|
|
npm update
|
||
|
|
```
|
||
|
|
|
||
|
|
Then run the default gulp task:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# builds all files in the `dist` directory
|
||
|
|
gulp
|
||
|
|
```
|