Skip to content

mrmashal/angular-material-persian-datepicker

Repository files navigation

Persian Datepicker for AngularJS Material

The datepicker component from AngularJS Material tweaked to take dates in the Persian (Jalaali) calendar system, using moment-jalaali. (Note: For Angular 6+ see this repository by Peyman Ebrahimi)

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.

About

Persian Datepicker for AngularJS Material

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages