Skip to content

Instantly share code, notes, and snippets.

@HeroicEric
Last active March 28, 2019 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HeroicEric/d5d4b3ee4675cc1b66768fb87320601f to your computer and use it in GitHub Desktop.
Save HeroicEric/d5d4b3ee4675cc1b66768fb87320601f to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Component.extend({
hideButton: true
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
foo: [1, 2, 3, 4, 5, 6, 8, 9, 10]
});
<h1>Welcome to {{appName}}</h1>
{{#each foo as |foo|}}
<MyComponent />
{{/each}}
<div
onmouseenter={{action (mut this.hideButton) false}}
onmouseleave={{action (mut this.hideButton) true}}
>
wat
<button style="{{if this.hideButton "visibility: hidden;"}}">some button</button>
</div>
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
},
"addons": {
"ember-data": "3.4.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment