Skip to content

Instantly share code, notes, and snippets.

View willrax's full-sized avatar
👨‍💻

Will Raxworthy willrax

👨‍💻
View GitHub Profile
@willrax
willrax / components.my-component.js
Last active December 15, 2022 05:45 — forked from farisj/components.my-component.js
Indeterminate/Checked Inputs in Ember
import Ember from 'ember';
import _ from "lodash";
const { computed, get, set, isEqual } = Ember;
export default Ember.Component.extend({
items: [],
selectedItems: [],
allItems: computed.alias('items'),
@willrax
willrax / controllers.application.js
Last active September 20, 2017 13:37 — forked from poteto/controllers.application.js
ember-changeset-validations demo
import Ember from 'ember';
import AdultValidations from '../validations/adult';
import ChildValidations from '../validations/child';
import { reservedEmails } from '../validators/uniqueness';
import { schema } from '../models/user';
const { get } = Ember;
const { keys } = Object;
export default Ember.Controller.extend({