You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rezept.js 416B

123456789101112131415161718
  1. import Component from '@glimmer/component';
  2. import { action } from '@ember/object';
  3. import { tracked } from '@glimmer/tracking';
  4. export default class RezeptController extends Component {
  5. @tracked isLarge = false;
  6. @tracked isSelected = false;
  7. @action toggleSize()
  8. {
  9. this.isLarge = !this.isLarge;
  10. }
  11. @action toggleSelection()
  12. {
  13. this.isSelected = !this.isSelected;
  14. }
  15. }