Skip to content

Instantly share code, notes, and snippets.

View swe9's full-sized avatar

Steve Elmer swe9

View GitHub Profile
@swe9
swe9 / components.connection-rater\.js
Created December 9, 2020 22:05 — forked from ejuher/components.connection-rater\.js
Connection Rater Interview
import Component from '@glimmer/component';
export default class extends Component {
constructor() {
super(...arguments);
// connections is provided here and is the same as @connections in the hbs file
const connections = this.args.connections
// 1) Apply the class "alert-info" to the first connection
connections[0].active = true;