This file contains 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'; | |
import { computed } from '@ember/object'; | |
export default class extends Component { | |
@tracked sortBy = "test"; | |
incredibleArray = []; | |
get currentSortBy() { |
This file contains 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 Controller from '@ember/controller'; | |
import { tracked } from '@glimmer/tracking'; | |
import { restartableTask } from 'ember-concurrency'; | |
export default class ApplicationController extends Controller { | |
@tracked appName = 'Ember Twiddle'; | |
@restartableTask | |
*testTask() { | |
this.appName = 'testing'; |
This file contains 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 Controller from '@ember/controller'; | |
import { action, computed, set } from '@ember/object'; | |
export default class ApplicationController extends Controller { | |
get nonComputedMessage() { | |
return this.model.message; | |
} | |
@computed('model.message') | |
get computedMessage() { |