Last active
November 3, 2015 23:56
-
-
Save yurifrl/acd24c0277b2c22f361c to your computer and use it in GitHub Desktop.
Product
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.Route.extend({ | |
model: function(){ | |
return {name: "hello"} | |
} | |
}); |
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 Router from 'demo-app/router'; | |
import Ember from 'ember'; | |
window.addEventListener('message', function(m) { | |
console.log(m); | |
}); | |
window.parent.postMessage('boo','http://localhost:4200'); | |
Router.reopen({ | |
updateUrlBar: Ember.on('didTransition', function() { | |
window.parent.postMessage('boo','http://localhost:4200'); | |
}) | |
}); | |
export default { | |
name: 'router', | |
initialize: function() {} | |
}; |
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
{ | |
"version": "0.4.16", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.1.0", | |
"ember-data": "2.1.0", | |
"ember-template-compiler": "2.1.0", | |
"active-model-adapter": "2.0.2", | |
"ember-data-fixture-adapter": "1.13.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment