O'Reilly logo

Angular Test-Driven Development - Second Edition by Md. Ziaul Haq

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Planning further improvements

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required