angular-material-persian-datepicker

1.2.0 • Public • Published

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.

Package Sidebar

Install

npm i angular-material-persian-datepicker

Weekly Downloads

13

Version

1.2.0

License

MIT

Last publish

Collaborators

  • mrmashal