You can simply define them as private functions in a controller function.
Note that I also approve the syntax for declaring a function, rather than assigning a function expression to a variable, because it allows you to declare all your functions at the bottom, which reduces the cognitive load when trying to see what happens.
app.controller('MainCtrl', function ($scope) { $scope.exposedFn = exposedFn; function exposedFn() { fnNotExposed(); } function fnNotExposed() {} });
plalx source share