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 { task } from "ember-concurrency" | |
| import { reads } from '@ember/object/computed' | |
| import { computed, action } from '@ember/object' | |
| import RSVP from "rsvp" | |
| export default class extends Component { | |
| @(task({ | |
| reponse: null, |
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 Controller from '@ember/controller'; | |
| import { task, timeout, waitForProperty } from "ember-concurrency" | |
| import { alias } from '@ember/object/computed' | |
| import { computed, action, set, get } from '@ember/object' | |
| import { tracked } from '@glimmer/tracking' | |
| export default class ApplicationController extends Controller { | |
| appName = 'Ember Twiddle'; | |
| @task({ enqueue: true}) subTask = { |
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 Controller from '@ember/controller'; | |
| import { action } from "@ember/object" | |
| export default class ApplicationController extends Controller { | |
| appName = 'Ember Twiddle'; | |
| date = new Date() | |
| pickr = null | |
| @action |
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 { inject as service } from '@ember/service' | |
| import { computed, get, action } from '@ember/object' | |
| export default class extends Component { | |
| // PUBLIC | |
| // route = null | |
| // model = null | |
| @service router |
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 Controller from "@ember/controller"; | |
| import { set } from "@ember/object"; | |
| import { sort } from "@ember/object/computed"; | |
| export default Controller.extend({ | |
| init() { | |
| this._super(...arguments); | |
| this.set("sortOrder", ["order:asc"]); | |
| }, |
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 Controller from "@ember/controller"; | |
| import { computed } from "@ember/object"; | |
| export default Controller.extend({ | |
| queryParams: ["currentStudent"], | |
| currentStudent: null, | |
| times: computed(function() { | |
| return ["8:00", "8:30", "9:00", "9:30","10:00","10:30","11:00","11:30","12:00","12:30","1:00","1:30","2:00","2:30","3:00","3:30","4:00","4:30","5:00"]; |
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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| boardify: Ember.inject.service(), | |
| actions: { | |
| setPath(path){ | |
| this.set('boardify.ctxPath', path); | |
| } |
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 DS from 'ember-data'; | |
| export default DS.RESTAdapter.extend({ | |
| }); |
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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| sortDir: "asc", | |
| sortProp: "id", | |
| sortKey: Ember.computed('sortDir','sortProp',function(){ | |
| return [this.get('sortProp') + ":" + this.get('sortDir')]; | |
| }), |
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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| sortDir: "asc", | |
| sortProp: "id", | |
| sortKey: Ember.computed('sortDir','sortProp',function(){ | |
| return [this.get('sortProp') + ":" + this.get('sortDir')]; | |
| }), |
NewerOlder