Skip to content

Instantly share code, notes, and snippets.

View agrigoroi's full-sized avatar

Alexandru Grigoroi agrigoroi

View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
async save() {
try {
await this.get('foo').save();
await this.set('saved', true);
} catch(ex) {
console.log("test");