1.0.6 • Published 8 years ago
ngx-hijri-lib v1.0.6
ngx-hijri-lib - The Hijri Library for Angular
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 --saveyarn
$ yarn add ngx-hijri-lib --saveUsage
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