var app = angular.module('controllers', []);
app.controller('StoreSignUpCtrl', function($scope, $state, $q){});
You can inject these system components and use them by referencing $scope, $state, $q, $ionicActionSheet in the controller.
How can I use these components if I customize a function?
var myFun = function($q){};
Your functions all appear in a controller or instruction or a service or block in Angular, and all of the above can be imported into Angular's internal library, so the functions you define can definitely be used,
For example, you have to define the function in a directive
If you don’t understand anything, you can continue discussing
(I’m not sure where the function you defined is, so the answer may not be what you want)