Skip to content

Instantly share code, notes, and snippets.

View visoft's full-sized avatar

Damien White visoft

View GitHub Profile
@visoft
visoft / controllers.application\.js
Last active May 1, 2020 23:33
Bootstrap Changeset Form
import Controller from '@ember/controller';
import { tracked } from '@glimmer/tracking';
import { Changeset } from 'ember-changeset';
import { action } from '@ember/object';
import FormValidator from '../validators/form';
import lookupValidator from 'ember-changeset-validations';
export default class ApplicationController extends Controller {
@tracked formModel = { name: null, foo: null };