#Code splitting

2 messages · Page 1 of 1 (latest)

thin scroll
#

I like injecting the dependencies like this : everything in a Resources struct, and I define the controllers on it like a method

chilly ocean
#

where is handleGetTransactions?
make that method part of a struct
say call the struct TransectionHandler
add a field called txService with type TransactionService
initiate the struct with the service
now add handleGetTransactions function as part of the TransectionHandler struct
now handleGetTransactions can access the struct to access txService