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.

bild.js 396B

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