Applying the Builder Pattern to Improve an Angular Service

added by DotNetKicks
1/31/2018 1:49:26 AM

1 Kicks, 294 Views

Recently I was working on an Angular/Typescript service that was building up some navigation-related properties, driving the menu of a SPA application. The existing service had a helper method that took in two arrays full of potential validation issues on the SPA's different tabs, and based on these it would return an appropriately-styled and configured Tab object.


0 comments