The search application we have so far is a simple search application. But we can make it better by keeping it as simple as it is. What I mean is, we can do this in the best way, like we were trying to decouple the data logic by separating the reusable code in the new service.
We still have a few more things to improve. It seems our application has not yet decoupled perfectly. Our components have not decoupled as we'd expected. We are talking about the
MembersComponent, which contains the search feature and member listing feature.
We will follow the single responsibility principle here, which means every component should have a single responsibility. Here,
MembersComponent has two. So we should break down this component ...