Renamed many components + started implementing lazy loading
This commit is contained in:
1 parent
c8578ccf77
commit
60b517500f
80 files changed
+274
-242
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'dateFormat'
|
||||
})
|
||||
export class DateFormatPipe implements PipeTransform {
|
||||
|
||||
transform(value: string): string {
|
||||
if (!value) return '';
|
||||
|
||||
const date = new Date(value);
|
||||
const formatter = new Intl.DateTimeFormat('en-US', { month: 'long', day: '2-digit', year: 'numeric' });
|
||||
return formatter.format(date);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user