Life cycle of jsRO Objects
Starting from the first ApplyModel produced in the application, jsRO will create the object, propagate it to the browser and trigger there the event related to this creation:
also, for the properties that are created with an assigned value, jsRO will replicate their initial values in the browser and fire the corresponding events:
and from that moment on, it will keep the state of the properties synchronized in the application and the browser.
If the model needs to be updated by the addition of new attributes (properties, events or method) a new ApplyModel must be made, which will, in turn, with the model already created, fire a changed event on the model:
This last event will also be triggered when closing the application.