This file contains hidden or 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 { | |
| } |
This file contains hidden or 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'; | |
| import { tracked } from '@glimmer/tracking'; | |
| export default class extends Component { | |
| @tracked viewCollections = [{ id: 123, name: 'fake' }]; | |
| constructor() { | |
| super(...arguments); | |
| // likely this will work with tasks | |
| // you can create a task to simply `yield this.args.experience.viewCollections` |
This file contains hidden or 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'; | |
| import { action, set } from '@ember/object'; | |
| import { tracked } from '@glimmer/tracking'; | |
| export default class extends Component { | |
| @tracked displayProduct; | |
| // get displayProduct() { | |
| // return this.args.products.map(p => ({ ...p, isSelected: p.isSelected ?? false })); | |
| // } |