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


#1

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


#2

See Lifecycle Callbacks Explained in the Handbook.


#3

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?


#4

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.


#5

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.