Controller

constructor
 Controller() 

Option name Type Description

owl.Controller

function Controller() {

}

init

method
 Controller.prototype.init() 

Init a controller
Will be called after navigate to new page
If action is defined in route it will be called instead of init

Controller.prototype.init = function() {

};

destroy

method
 Controller.prototype.destroy() 

Removes all data created by controller
Will be called before navigate to new page

Controller.prototype.destroy = function() {

};

owl.Controller = Controller;
})(window, owl);