In Angular application, a function is defined in a javascript file and called in a html file.

Javascript file:

<div ng-controller="MyController" ng-init="init()"> <button ng-click="onClick()"></button> </div>

html file:

angular.module['myapp'].controller('MyController', function ($scope, $http) { $scope.init = function () { }; $scope.onClick= function() { }; });

As you can see, the keyword we are interested is just a string, like "MyController". The only way to extract it is regular expression.

In this article, I focus on how I combine Emacs and Ctags. If you use other text edit like Visual Studio Code, you still can use Ctags.