This is very helpful for me. Thank you a lot.
I find that we can improve it further in case we want to show ViewCount in multiple places and only Increase its counter when the detail page is loaded.
By that ViewCounter only return the current ViewCount.
This is very helpful for me. Thank you a lot.
I find that we can improve it further in case we want to show ViewCount in multiple places and only Increase its counter when the detail page is loaded.
By that ViewCounter only return the current ViewCount.
I'm glad you liked my post. And yes, I think that could be done.