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 Ember from 'ember'; | |
import {computed} from '@ember/object'; | |
export default Ember.Component.extend({ | |
magicName: 'foo', | |
foo: 'I am foo', | |
bar: 'I am bar (not really necessary)', | |
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 Ember from 'ember'; | |
import {computed} from '@ember/object'; | |
function magicFunc () { | |
let name = this.get('magicName'); | |
let value = this.get(name); | |
console.log('NAME', name, 'VALUE', value); | |
Ember.run.next(() => { | |
this.set('magicValue', Ember.computed('magicName', name, magicFunc)); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Randomly Slow Route Demo' | |
}); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Randomly Slow Route Demo' | |
}); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Randomly Slow Route Demo' | |
}); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
textSamples: [ | |
[ | |
'This is quite a long text', | |
'A short text', | |
'MMMMMMMMMMMMMMIIIIIIIIIIIIIII', |
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 Ember from 'ember'; | |
import DatetimeObject from '../datetime-input/datetime-object'; | |
import DatetimeRangeObject from '../datetime-range-input/datetime-range-object'; | |
export default Ember.Controller.extend({ | |
appName: 'PE Datetime Range Selector Demo', | |
datetimeRange: DatetimeRangeObject.create(), | |
init () { |
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 Ember from 'ember'; | |
import DatetimeObject from '../datetime-input/datetime-object'; | |
import DatetimeRangeObject from '../datetime-range-input/datetime-range-object'; | |
export default Ember.Controller.extend({ | |
appName: 'PE Datetime Range Selector Demo', | |
datetimeRange: DatetimeRangeObject.create(), | |
init () { |
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 Ember from 'ember'; | |
import DatetimeObject from '../datetime-input/datetime-object'; | |
import DatetimeRangeObject from '../datetime-range-input/datetime-range-object'; | |
export default Ember.Controller.extend({ | |
appName: 'PE Datetime Range Selector Demo', | |
datetimeRange: DatetimeRangeObject.create(), | |
init () { |
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 Ember from 'ember'; | |
import Person from '../ddau-objects/person'; | |
import Name from '../ddau-objects/name'; | |
const presets = [ | |
Person.create({ | |
firstName: Name.create({value: 'John'}), | |
lastName: Name.create({value: 'Doe'}) | |
}), | |
Person.create({ |
NewerOlder