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
# GROUP A | |
# Albania - 401/1 | |
# France - 4.2/1 | |
# Romania 126/1 | |
# Switzerland 51/1 | |
# GROUP B | |
# England 9/1 | |
# Russia 67/1 | |
# Slovakia 151/1 |
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({ | |
a: false, | |
b: false, | |
c: false, | |
validationSet: ['a', 'b', 'c'], //Imagine this being a dynamic set of keys that we care about |
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', | |
actions: { | |
showInput() { | |
console.log('Show the input!'); | |
this.set('isShowingInput', true); | |
Ember.run.schedule('afterRender', this, () => { | |
Ember.$('input').focus().select(); |
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.Component.extend({ | |
didInsertElement() { | |
Ember.$(document).on('click.' + this.get('elementId'), Em.run.bind(this, () => { | |
this.get('close')(); | |
console.error('I CLOSED MYSELF!'); | |
})); | |
}, | |
willDestroyElement() { |
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({ | |
oneSelected: Ember.computed.equal('toggled', 1), | |
twoSelected: Ember.computed.equal('toggled', 2), | |
threeSelected: Ember.computed.equal('toggled', 3), | |
actions: { | |
toggle(item) { | |
this.set('toggled', item); | |
} |
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.Controller.extend({ | |
appName: 'Ember Twiddle', | |
number: 0, | |
computedProperty: computed('number', function() { | |
if (this.number > 5) { | |
throw new Error("Oh shit!") | |
} else { |
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({ | |
init() { | |
this._super(...arguments); | |
// let select = | |
} | |
}); |