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' | |
}); |
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', | |
normalButtonPressed() { | |
this.set('lastButtonPressed', 'normal'); | |
}, | |
submitButtonPressed() { | |
this.set('lastButtonPressed', 'submit'); |
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', | |
queryParams: ['category'], | |
category: 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 PageObject from 'ui/tests/page-object'; | |
let { | |
visitable, | |
fillable, | |
clickable, | |
text, | |
selectable | |
} = PageObject; |
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
class CreativeUploader extends Ember.Component | |
actions: | |
doIt: -> | |
debugger | |
x = 1 | |
`export default CreativeUploader` |
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
{ | |
"name": "ui", | |
"version": "0.0.0", | |
"options": { | |
"syntaxtype": "coffescript", | |
"extension": ".em", | |
"paths": [ | |
"app", | |
"app/pods" | |
], |
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 Session from 'simple-auth/session'` | |
class CustomSession extends Session | |
#_store: Ember.inject.service("store") | |
# inject.service(store) lands in ember data 1.13 | |
_store: ~> @container.lookup('store:main') | |
# TODO with simple-auth 0.8+ the returned api data is stored under secure! so secure.user_id will be the new path | |
currentUser: Ember.computed 'user_id', 'isAuthenticated', -> | |
userId = @user_id |
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
_findCountries: -> | |
isoCodes = Ember.Object.createWithMixins(IsoCodes) | |
countries = (Ember.Object.create({ id: code, name: name }) for code, name of isoCodes.isoCountries) | |
promise = Ember.RSVP.Promise.resolve(countries) | |
promiseArray = Ember.ArrayProxy.extend(Ember.PromiseProxyMixin) | |
promiseArray.create({ promise: promise }) |
NewerOlder