1.2.0 • Published 7 years ago

angular-material-persian-datepicker v1.2.0

Weekly downloads
34
License
MIT
Repository
github
Last release
7 years ago

Persian Datepicker for AngularJS Material

The datepicker component from AngularJS Material tweaked to take dates in the Persian (Jalaali) calendar system, using moment-jalaali.

License NPM Bower

Demo

You can see a live demo here.

Month View Year View

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.