Skip to content

Instantly share code, notes, and snippets.

@serenaf
Created November 7, 2017 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serenaf/913972366dca2d4d3f6598968de53ee9 to your computer and use it in GitHub Desktop.
Save serenaf/913972366dca2d4d3f6598968de53ee9 to your computer and use it in GitHub Desktop.
Action for Base Controller
import Controller from '@ember/controller';
export default Controller.extend({
actions: {
markAsRead(item) {
this.get('store').unloadRecord(item);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment