This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |