Inject 'goToPage' into caller scope