use one of this:
1.you can use serveice and put common function to that service and access that function to all controlller.
app.service('MyService', function() {
this.changeEstimateStatus = function()
{
console.log('changeEstimateStatus');
};
});
app.controller("createController", ["$scope",MyService,
function ($scope,MyService)
{
$scope.i = 0;
MyService.changeEstimateStatus ();
}]);
app.controller("editController", ["$scope", app.controller("createController", ["$scope",$rootScope,
function ($scope,$rootScope)
{
$scope.i = 0;
MyService.changeEstimateStatus ();
}]);
2.you can store that function in $rootscope object.and then access that function to all controlller.
like:
app.controller("createController", ["$scope",$rootScope,
function ($scope,$rootScope)
{
$scope.i = 0;
}]);
app.controller("editController", ["$scope",$rootScope,
function ($scope,$rootScope)
{
$rootScope.changeEstimateStatus ();
}]);
but 2nd option is not a good aproach.