In the LoopBack 3 docs, it was possible to pass the application object in [model].app
(e.g. Book.app
).
How can I access the application object in the same way in LoopBack 4?
I'm trying to dynamically (at runtime) create a controller from another controller:
app.controller(BookController);