Mention the lifecycle method in ui5 view controller?

devquora
devquora

Posted On: Feb 22, 2018

 

In ui5 view controller there are 4 life cycles present which are as

  • onInit ()- it is called when the view is instantiated if its control has already been created
  • onExit ()- this method is called when the view is destroyed. It also helps to finalise the activity and to use the free resources
  • onAfterRendering ()- this method is called when the view has been rendered in which clears that HTML is a part of document.
  • onBeforeRendering ()- this method is called when the controller view has to be re-rendered.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    UI5 interview questions

    Why multi flow design pattern is use, how splitting is implemented in it?

    When any complex application flow is used then multiplied design pattern is suggested. it also covers the need to utilise all the design patterns in order to build a single working application. Naviga...

    UI5 interview questions

    Can you tell us about the formatter in ui5 and how to use it?

    The formatter is used in ui5 when any changes have to be performed on the back end property data. The entire backend executions are done considering the front and property data. As a formatter can be ...

    UI5 interview questions

    What is UI5 and why it is considered?

    SAPUI5 is a single client side rendering library (similar to HTML 5) which strictly follows which internet application protocols. It is based over the JavaScript to provide lightweight programming hie...