Skip to content

Instantly share code, notes, and snippets.

@MadalenaGoncalves
MadalenaGoncalves / controllers.application.js
Created August 9, 2017 12:53 — forked from g8anusha/controllers.application.js
ember-validated-form with custom textareas
import Ember from 'ember';
import UserValidations from 'twiddle/validations/user';
export default Ember.Controller.extend({
UserValidations,
model: Ember.computed.alias('model.user'),
actions: {
submit(model) {
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()