Skip to content

Instantly share code, notes, and snippets.

@jelhan
Forked from chvonrohr/controllers.application.js
Last active January 12, 2018 11:30
Show Gist options
  • Save jelhan/e46d58b40370bff1692764e641e27224 to your computer and use it in GitHub Desktop.
Save jelhan/e46d58b40370bff1692764e641e27224 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
showModal: true,
value: 'foo'
});
<h1>ember-bootstrap and ember-composable-helpers pipe</h1>
Value: {{value}}
{{#bs-modal-simple
open=showModal
onSubmit=(pipe-action (action (mut value) 'bar') (action (mut showModal) false))
submitTitle='change'
}}
Change value from <i>{{value}}</i> to <i>bar</i>?
{{/bs-modal-simple}}
<br>
<br>
{
"version": "0.12.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.16.2",
"ember-template-compiler": "2.16.2",
"ember-testing": "2.16.2"
},
"addons": {
"ember-bootstrap": "1.0.0",
"ember-composable-helpers": "2.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment