Skip to content

Instantly share code, notes, and snippets.

View gerry3's full-sized avatar

Gerry Cardinal III gerry3

View GitHub Profile
@gerry3
gerry3 / controllers.application.js
Created September 21, 2017 18:08
Disable Events
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
isActive: false,
notActive: Ember.computed.not('isActive'),
actions: {
handleClick() {
import Component from '@glimmer/component';
export default class extends Component {
activeIndex = 0;
constructor(owner, args) {
super(owner, args); // what is owner?
// connections is provided here and is the same as @connections in the hbs file
const connections = args.connections
connections[this.activeIndex].active = true;