# How to operate functions of component controllers from outside

I have a component with a function inside:

app.component("myComponent", {
templateUrl: "myComponent.html",
controller: function() {
console.log(arg);
};
}
})


I would like to operate that function from outside the component:

<my-component>
</my-component>