Data from ES6 promise doesn't render on the page until I click on it?
问题 I an using Ionic for my app with a connection to Firebase to pull data. I created a promise in a factory to pull data down and thought it should render the data on the screen once it finishes but I'm getting nothing until I touch the screen? I get no error and the data does indeed come. Factory: all: function () { return new Promise ((resolve, reject) => { firebase.database().ref('desks').once('value').then(snapshot => { let desks = [] snapshot.forEach((child) => { desks.push(child.val()); })