Skip to content

Instantly share code, notes, and snippets.

@serenaf
Created Nov 7, 2017
Embed
What would you like to do?
Adding Base Controller and route controllers
import BaseController from 'ember-hacker-news/controllers/base-controller';
export default BaseController.extend({
});
import BaseController from 'ember-hacker-news/controllers/base-controller';
export default BaseController.extend({
});
import Controller from '@ember/controller';
export default Controller.extend({
actions: {
markAsRead(item) {
this.get('store').unloadRecord(item);
}
}
});
import BaseController from 'ember-hacker-news/controllers/base-controller';
export default BaseController.extend({
});
import BaseController from 'ember-hacker-news/controllers/base-controller';
export default BaseController.extend({
});
import BaseController from 'ember-hacker-news/controllers/base-controller';
export default BaseController.extend({
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment