Skip to content

Instantly share code, notes, and snippets.

@huyphamily
huyphamily / components.job-match\.js
Last active May 12, 2021 02:51 — forked from nadinerao/components.job-match\.js
XState POC with container
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
export default class extends Component {
}
@huyphamily
huyphamily / router.js
Created September 3, 2020 03:10 — forked from sglanzer-deprecated/router.js
Sync and async routing
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route('sync')
import Ember from 'ember';
const Input = Ember.Component.extend({
tagName: 'p',
classNames: ['x-input'],
attributeBindings: ['fieldName:data-field-name'],
fieldName: Ember.computed('label', function() {
return this.getWithDefault('label', '').dasherize();
}),
errors: Ember.computed('minlength', 'value', 'match', function() {
import Ember from 'ember';
import hexColor from '../utils/hex-color';
const {
Controller,
computed
} = Ember;
export default Controller.extend({
/**