For example, there is an ordinary module with a component.
class TestCtrl { funct() { this.message(); } } Angular.module('app', []) .run(function($rootScope) { $rootScope.message = function() { console.log("test call!"); } }) .component('test', { bindings: { message: '&' }, controller:TestCtrl }) <test message="message" ng-click="$ctrl.funct()"></test> It does not start when clicking on an element, there is no reaction whatsoever, what am I doing wrong?