Skip to content

Instantly share code, notes, and snippets.

View thoov's full-sized avatar
🤔
Is the Kool-Aid man the glass part or the liquid?

Travis Hoover thoov

🤔
Is the Kool-Aid man the glass part or the liquid?
View GitHub Profile
@thoov
thoov / user.hbs
Last active May 8, 2018 15:50
Thought exercise on "Ember Controllerless"
<p>{{data.firstName}}</p>
<p>{{data.lastName}}</p>
{{some-component user=data}}
<button {{action 'someAction' data.username}}>Trigger someAction</button>
@thoov
thoov / components.my-form.js
Created April 2, 2019 05:09
Disabled Button Example
import Ember from 'ember';
import { computed } from '@ember/object';
export default Ember.Component.extend({
childInputs: null,
init() {
this._super(...arguments);
this.childInputs = Ember.A([ { isValid: false }, { isValid: false } ]);
},
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
import { connect, on } from '../decorators';
@connect('ws://foo.baz')
export default class ApplicationController extends Controller {
@service websocket;
}
@thoov
thoov / cookie.js
Created May 21, 2011 18:24
Javascript Cookie Functions