I'd like execute a function when a div is rendered.

I’d like execute a function when a div is rendered.

See Lifecycle Callbacks Explained in the Handbook.

I understood the function of connect(), but in my controller I call other controllers, and they are not yet loaded when the function connect is called. How to be notified when all controllers are connected?

We don’t yet have a system for connecting controllers to other controllers.

Could you be more specific about what you’re trying to achieve? We might be able to suggest other ways to do what you want.

I have several controllers on my html page, and I created a controller by element, so that code is clean, I have separated the functionality of each element by controller. When initializing the page or an html element, I want certain functions to be called through my controllers. My controllers can call other controllers because I wish to separate each operation for a cleaner code.