.then(potatoList => { const potatoListView = new PotatoListView({ collection: potatoList, initialScrollPosition: this.scrollPosition, persistScrollPosition: (position) => { this.scrollPosition = position; } }); RootRegion.show(potatoListView); });
.then(potatoModel => { const potatoDetailView = new PotatoDetailView({model: potatoModel}); RootRegion.show(potatoDetailView); });