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'; | |
var MyObj = Ember.Object.extend({ | |
obj: Ember.computed({ | |
get() { | |
var Obj = class Obj { | |
shrinkValues() { | |
Object.keys(this).forEach(key => { | |
if(this[key] === Obj.prototype[key]) { | |
delete this[key]; |
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', | |
newProp: 'propX', | |
newStr: 'coco', | |
toRemoveProp: '', | |
hash: { | |
prop1: 'value1' |
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'; | |
var MyObj = Ember.Object.extend({ | |
value: null, | |
depends: null, | |
value2: Ember.computed('depends', { | |
get() { | |
var depends = this.get('depends') || {}; |
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 Em from 'ember' | |
export default Em.Object.extend({ | |
source: null, | |
context: Em.computed.alias('source.source'), | |
path: '', | |
data: Em.computed('context', 'path', { | |
get() { | |
console.log('definition de l\'objet data'); | |
var _data = this.get('_data'); |
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
export default { | |
CONTAINERS_COUNT: 1000, | |
PROPS_COUNT: 100 | |
} |
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' | |
}); |
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', | |
field1: { | |
label: 'mon texte', | |
value: 'Coucou!', | |
isDirty: true | |
}, |
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', | |
field1: { | |
label: 'mon texte', | |
value: 'Coucou!', | |
isDirty: true | |
}, |
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', | |
field1: { | |
label: 'mon texte', | |
value: 'Coucou!', | |
isDirty: true | |
}, |
NewerOlder