angular-material-persian-datepicker
v1.2.0
Published
Persian Datepicker for AngularJS Material
Downloads
37
Maintainers
Readme
Persian Datepicker for AngularJS Material
The datepicker component from AngularJS Material tweaked to take dates in the Persian (Jalaali) calendar system, using moment-jalaali.
Demo
You can see a live demo here.
Installation
You may use npm or bower:
Npm
$ npm install angular-material-persian-datepicker --save
Bower
$ bower install angular-material-persian-datepicker --save
Add references to your html
Load the component's javascript file in your html:
<script src="dist/datePicker.min.js"></script>
Add module dependency
Add the angular-material-persian-datepicker
dependency to your angular module:
angular.module('app', [
'angular-material-persian-datepicker'
]);
Directive Usage
<md-persian-datepicker ng-model="birthday"></md-persian-datepicker>
birthday
should be a native javascript Date object. Refer to original component's documentation for other available options.