on 12-06-2017 3:42 AM
Hi Experts,
I'm writing a component which needs create something in backend services. As the component loaded async. I want to find a way to let component only "ready" when all async backend operation is done.
Code of component
--------
onInit() {
//call a routine with promise.
}
--------
Code in component user
------------------------
var componentPromise = sap.ui.component( { name: xxx
, async: true, settings: { componentData: oData } }
); componentPromise.then(
// I hope when the UI5 says the component is loaded, not the onInit is executed, but several async operation inside the onInit is also returned.
...
------------------------
Is there any trick to let it feasible?
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.