Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Adds public API for loadData promise
- Adds an additional Promise to support checking for the data loading state. Currently, if the JSONModel was created from the manifest, applications cannot check if the data was loaded yet during the controller init. Attaching to the requestCompleted events etc. might be too late, depending on the timing of the data requests. - Also adds a Promise as the return value of the loadData() function. Change-Id: I99d1079b907bc156efaa833c7d20b1e04e0451b2 Fixes: #2213 Fixes: #2282 BCP: 1880574213
- Loading branch information
Showing
3 changed files
with
238 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters