Pass data into modules and let modules read data from parent apps

I would like to pass data into my modules and also let my modules read temporary states of my parent app. This way i can create modules which react to different environments.

Have you read the following doc?

Didn't know that this existed. Thank you for your fast response.