19 lines
416 B
JavaScript
19 lines
416 B
JavaScript
|
import Component from '@glimmer/component';
|
||
|
import { action } from '@ember/object';
|
||
|
import { tracked } from '@glimmer/tracking';
|
||
|
|
||
|
export default class RezeptController extends Component {
|
||
|
@tracked isLarge = false;
|
||
|
@tracked isSelected = false;
|
||
|
|
||
|
@action toggleSize()
|
||
|
{
|
||
|
this.isLarge = !this.isLarge;
|
||
|
}
|
||
|
|
||
|
@action toggleSelection()
|
||
|
{
|
||
|
this.isSelected = !this.isSelected;
|
||
|
}
|
||
|
}
|