👉 https://open.spotify.com/user/jgwhite/playlist/0Ci1VD65hsKvjH0jgULeWd 👈
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({ | |
condition: false, | |
risingEdgeOnly: true, | |
count: 0, | |
tagName: '', | |
didReceiveAttrs() { | |
this._super(...arguments); |
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
==> https://github.com/glimmerjs/glimmer-application/compare/master...jgwhite:attributes | |
diff --git a/src/application.ts b/src/application.ts | |
index 3ae3a49..e16e6b8 100644 | |
--- a/src/application.ts | |
+++ b/src/application.ts | |
@@ -39,7 +39,8 @@ export interface AppRoot { | |
id: number, | |
component: string | ComponentDefinition<Component>, | |
parent: Simple.Node, |
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
/** | |
* app/services/storage.js | |
*/ | |
import Service from 'ember-service'; | |
import computed from 'ember-computed'; | |
import Ember from 'ember'; | |
const { getOwner } = Ember; |
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', | |
colors: ['green', 'red', 'blue'], | |
actions: { | |
reorder(colors) { | |
this.set('colors', colors); |
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', | |
onPaste(event) { | |
event.preventDefault(); | |
event.clipboardData.items[0].getAsString(s => { | |
this.set('value', reverse(s)); |
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
/*jshint node:true*/ | |
var COLOR_CODES = { | |
red: '31', | |
green: '32' | |
}; | |
module.exports = Reporter; | |
function Reporter(out) { |
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'; | |
const PickRandom = Ember.Component.extend({ | |
tagName: '', | |
data: null, | |
choice: null, | |
init() { | |
this._super(); | |
this.pick(); |