0.0.2 • Published 1 year ago
ngx-persian-date-pipe v0.0.2
Ngx Persian Date Pipe
Angular Pipe for rendering persian date.
Installation
npm i ngx-persian-date-pipe
Usage
The following usage demonstrate pipe used within standalone component, but of course you can import it in NgModule too.
import { NgxPersianDatePipe } from 'ngx-persian-date-pipe';
@Component({
standAlone: true,
imports: [ NgxPersianDatePipe ],
template: `<td mat-cell *matCellDef="let row">
{{row.startDate | persianDate}}
</td>`
})
class MyComponent {}