How can I get a reference from a parent and pass it to a child?

is the code that retrieves the value running?