I hereby claim:
- I am igorstajic on github.
- I am istajic (https://keybase.io/istajic) on keybase.
- I have a public key ASD10xMeJ0FpXErM2iTwM0nEwXVAGuwmfYbIK94dTrHE1Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
exampleLabel: '', | |
actions: { | |
myAction(clickEvent) { | |
this.set('exampleLabel', `Clicked on element with id #${clickEvent.target.id}`) | |
} | |
} |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
myStrings: ['bla', 'asd', 'zzz', 'fgh'], | |
computedStrings: Ember.computed('myStrings.[]', function() { | |
return this.get('myStrings') | |
.map(aString => Ember.String.capitalize(aString)); | |
}), | |
actions: { |