ngx-hijri-lib
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

ngx-hijri-lib - The Hijri Library for Angular

npm TypeScript build

Angular 2+ plugin for Hijri dates conversions. Date calculations based on hijri-js and solarHijri-js libraries.

This package provides components, pipes and service Angular for the date conversions.

It's available on plunker plunker playground

Install

It's registered on npmjs.com as ngx-hijri-lib.

npm

$ npm install ngx-hijri-lib --save

yarn

$ yarn add ngx-hijri-lib --save

Usage

Components

 
    <g2h></g2h>
 
 
    <g2h date="31/10/2017"></g2h>
 
 
    <g2h date="31-10-2017" splitter="-" format="full"></g2h>
 
 
    <h2g></h2g>
 
 
    <h2g date="12/12/1438"></h2g>
 

Pipes

 
    <span>{{ '31/10/2017' | h2g }}</span>
 
 
    <span>{{ '31-10-2017' | h2g:'-':full }}</span>
    
 
    <span>{{ '12-12-1439' | g2h:'-':full }}</span>
 

Development project

In the project source code there is a directory named (demo) where you can run this library in dev mode.

the (src) directory contains the source code of this package.

    git clone https://github.com/bugyboo/ngx-hijri-lib
    cd into ngx-...

    yarn install
    npm run test
    npm run build

    ng serve

Package Sidebar

Install

npm i ngx-hijri-lib

Weekly Downloads

14

Version

1.0.6

License

MIT

Last publish

Collaborators

  • bugyboo