Skip to content

Instantly share code, notes, and snippets.

@hszeto
hszeto / components.connection-rater\.js
Created November 20, 2020 01:04 — 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;