Skip to content

Instantly share code, notes, and snippets.

@lmcardle
Last active October 26, 2015 19:00
Show Gist options
  • Save lmcardle/9bd863d32b2257663c57 to your computer and use it in GitHub Desktop.
Save lmcardle/9bd863d32b2257663c57 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
<h1>Welcome to {{appName}}</h1>
<div class="row">
<div class="small-12 columns">
{{my-button}}
</div>
</div>
<br>
<br>
{{outlet}}
<br>
<br>
import Ember from 'ember';
export default Ember.Component.extend({
didInsertElement: function() {
this.$().foundation();
},
actions: {
componentAction: function() {
alert('componentAction clicked');
}
}
});
<a data-dropdown="drop2" aria-controls="drop2" aria-expanded="false">Has Content Dropdown</a>
<div id="drop2" data-dropdown-content class="f-dropdown content" aria-hidden="true" tabindex="-1">
<p {{action "componentAction"}}>Some text that people will think is awesome! Some text that people will think is awesome! Some text that people will think is awesome!</p>
</div>
{
"version": "0.4.14",
"EmberENV": {
"FEATURES": {}
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.1.0/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.1.0/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.1.0/ember-template-compiler.js",
"foundation-css": "http://cdn.foundation5.zurb.com/foundation.css",
"foundation-js": "http://cdn.foundation5.zurb.com/foundation.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment