Created
July 15, 2015 23:05
-
-
Save KTKate/6d55ac7ed4e92b26a165 to your computer and use it in GitHub Desktop.
New Twiddle
This file contains hidden or 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 Ember.Component.extend({ | |
| unicorn: "default", | |
| click: function() { | |
| const strngs = ['i', 'want', 'to', 'go', 'home']; | |
| this.attrs.unicorn.update( | |
| strngs[Math.floor(Math.random()*strngs.length)] | |
| ); | |
| } | |
| }); | |
This file contains hidden or 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', | |
| narwhal: "controller" | |
| }); |
This file contains hidden or 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 Router = Ember.Router.extend({ | |
| location: 'none' | |
| }); | |
| Router.map(function() { | |
| }); | |
| export default Router; |
This file contains hidden or 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
| body { margin: 12px 16px } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment