Skip to content

Instantly share code, notes, and snippets.

@Eric162
Eric162 / components.my-component\.js
Created June 25, 2021 01:03 — forked from alias-mac/components.my-component\.js
Multi action in 1 event in component
import Component from '@glimmer/component';
export default class extends Component {
}
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { alias } from '@ember/object/computed'
export default class extends Component {
@service router;
@alias('router.currentRouteName') currentRouteName;
}
import Ember from 'ember';
export default Ember.Component.extend({
});
@Eric162
Eric162 / controllers.application.js
Last active August 20, 2018 21:34
relative link-to
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});