I am building an angular app where I have two controllers in the order Parent controller -> Child controller, where the child controller gets called only when the parent controller has completely executed.

I am using an object on the scope to pass properties from the Parent to the Child controller which is working fine.

However, now I want to pass a function in the same order, but I am not able to access it from the Child controller.

parentController.js

function ParentController($scope) { ... function _loadCarrierObject() { $scope.carrierObject = {}; $scope.carrierObject.foo = bar; ... $scope.carrierObject.getUpdates = _fetchUpdates; } function _fetchUpdates() { ... }

childController.js

function getUpdates() { $scope.carrierObject.foo; // returns bar $scope.carrierObject.getUpdates(); // returns undefined }

EDIT: I should have been explicit. I was trying with using the function keyword with both the function definitions.