Skip to content

Instantly share code, notes, and snippets.

@victor95pc
victor95pc / pages-loader.js
Last active Mar 7, 2017
Pages Loader ES6 Module(with Parallelism support) for Ember
View pages-loader.js
import Ember from "ember";
const { RSVP } = Ember;
export function loadPagesInParallel(recordsPromise) {
return recordsPromise.then(getPagesPromisesInParallel).then(waitForAllPromises);
}
export function loadPages(recordsPromise) {
return recordsPromise.then(getPagesPromises).then(waitForAllPromises);