Hi Naveen, first of all, thank you so much for creating this video. My first suggestion in your code is this: getSorting(value: string) { if (!value) { return { sort: value.split('-')[0], orderBy: value.split('-')[2] } } return { sort: '', orderBy: '' } } Make sense?
Just awesome bro. Clear Explanation. I applied your logic to my project and it works correctly!!! Once again tqsm.. Awesome teaching bro....
Hi Naveen, first of all, thank you so much for creating this video. My first suggestion in your code is this:
getSorting(value: string) {
if (!value) {
return {
sort: value.split('-')[0],
orderBy: value.split('-')[2]
}
}
return {
sort: '', orderBy: ''
}
}
Make sense?