Ashraful Alam
Ashraful Alam
I prefer to pass json to columns in data-table. You could use a custom Pipe as below - ``` # Component tableColumns = [ { name: 'Title', prop: 'title' },...
@sushmit-oodles this.datePipe is a custom pipe built to transform the date. The following should return data to 'MM/dd/yyyy' format. ``` datePipe(value: any, ...args: any[]) { return new Date(value).toLocaleString('en-US').split(',')[0]; } ```...
> How you pass the value to the pipe via column. Object prop value is directly passed to the pipe
> I have used the pipe explained inside this article .. > https://medium.com/@Pierre_anthill/angular-2-4-pretty-phone-number-pipe-2da3fab8fe6e > > And it needs to args so how can i do that. I don't think it's...