Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Is there a better way of doing it?

$
0
0

@johnunclesam wrote:

I have this code:

new Ember.RSVP.Promise((resolve) => {
	let promise = myList.pushObject(book);
	resolve(promise);
}).then(() => {
	this.send('scrollToBottom', '#myList');
});

Is there a better way of doing it?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles