Skip to content

Instantly share code, notes, and snippets.

View thomassnielsen's full-sized avatar

Thomas Sunde Nielsen thomassnielsen

  • Carrot
  • Bergen
View GitHub Profile
@thomassnielsen
thomassnielsen / controllers.application.js
Created May 14, 2018 12:55 — forked from czosel/controllers.application.js
ember-validated-form basic example
import Ember from 'ember';
import UserValidations from 'twiddle/validations/user';
export default Ember.Controller.extend({
UserValidations,
actions: {
submit(model) {
console.log('submit', model)
model.save()