Skip to content

Instantly share code, notes, and snippets.

View gerry3's full-sized avatar

Gerry Cardinal III gerry3

View GitHub Profile
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;