initialize Summary Performs the initial render. Usage public void initialize(Model model) Parameters model The model to perform the initial render with. Description Performs the initial render by calling View.updateAll and View.render (in order). Examples Basic Usage 1234567891011121314151617181920212223import Altitude.Frontend; class ContactModel : Model{ string name = "Test"; override function toExternal() { return { name: this.name }; }}class ContactView : View{ ContactView() { super("<div>{{name}}</div>"); }} ContactModel model = new ContactModel();ContactView view = new ContactView();model.attach(view);view.initialize(model); Share HTML | BBCode | Direct Link