18 lines
396 B
JavaScript
18 lines
396 B
JavaScript
import Component from '@glimmer/component';
|
|
import { tracked } from '@glimmer/tracking';
|
|
import { action } from '@ember/object';
|
|
|
|
export default class BildComponent extends Component {
|
|
|
|
@tracked isLarge = false;
|
|
@tracked selected = false;
|
|
|
|
@action toggleSize() {
|
|
this.isLarge = !this.isLarge;
|
|
}
|
|
|
|
@action select()
|
|
{
|
|
this.selected = !this.selected
|
|
}
|
|
} |