|
|
|
|
|
by SchizoDuckie
4431 days ago
|
|
Angular's dependency injection is still a matter of discussion and a lot of people are not completely happen with it. It'll also be made into something different for angular 2.0. Still, besides that: DRY is IMO not about these 2 lines that you've refactored away here. It's about whole functions/classes that have similar functionality where you're repeating yourself. Therefore, this would be a micro-optimisation with negative results on impact on performance most likely (since there's more overhead) |
|