Nice Tomas; this is what I call refactoring duplication based only on coding patterns! As you know the power of properly used DI, allows us to look at patterns that may repeat, without regard to context. In fact, the concepts of injecting behaviors into templates is what Angular is all about, and it doesn't have to be just code, it can also include html templates. Need to abstract common things to one-time-one-place, in Angular it's "cd ../common; ng g c myCommonThing" works every time and takes about 2 seconds to type that line.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice Tomas; this is what I call refactoring duplication based only on coding patterns! As you know the power of properly used DI, allows us to look at patterns that may repeat, without regard to context. In fact, the concepts of injecting behaviors into templates is what Angular is all about, and it doesn't have to be just code, it can also include html templates. Need to abstract common things to one-time-one-place, in Angular it's "cd ../common; ng g c myCommonThing" works every time and takes about 2 seconds to type that line.