Saturday, 17 October 2015

Life cycle of the Controller.js in SAPUI5 ?

Controller.js execution starts from  onInit(),and then OnBeforeRendering(),and then OnAfterRendering(),and then OnExist().


you can check the flow of Controller.js by putting the alert message in every method.


EX:
onInit: function() {alert("onit");},
onBeforeRendering: function() {alert("onBefore");}
onAfterRendering: function() {alert("onAfter");},
onExit: function() {alert("onEXist");}


No comments:

Post a Comment