-
main thing trying to solve is
if (transactionReport) { this.transactionService.getData() } else if (holdingsreport){ this.holdingsService.getDate(); }
turns in
- TransactionService
- getData()
- transaction component this.reportService.getData()
- HoldingsService
- getData()
- holdings component this.reportService.getData()
-
is it overly complicated?
- it uses pretty basic angular features
- useFactory DI
- it uses pretty basic angular features
-
does it actually solve the issue?
- TransactionService